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