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