#include <bits/stdc++.h>
using namespace std;
int main() {
  int a = 2, x;
  cin >> x;
  cout << a;
  for (int i = 2; i < x; i++) {
    a += i;
    if (a > x) {
      a -= x;
    }
    cout << " " << a;
  }
  cout << endl;
  return 0;
}
