#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int n, x, inc = 1;
int main() {
  cin >> n;
  x = 0;
  for (int i = 0; i < n - 1; ++i) {
    x += inc;
    x %= n;
    inc++;
    v.push_back(x);
  }
  for (int i = 0; i < n - 1; ++i) {
    cout << v[i] % n + 1 << " ";
  }
  cout << endl;
  return 0;
}
