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