#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ss = 1, s = 1;
  for (int i = 1; i < n; i++) {
    ss += s;
    ss %= n;
    s++;
    cout << (ss ? ss : n) << ' ';
  }
  return 0;
}
