#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n = 0, boy = 1;
  cin >> n;
  for (int i = 0; i < n - 1; i++) {
    boy = (boy + i) % n + 1;
    cout << boy << " ";
  }
  cout << endl;
  return 0;
}
