#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, d = 1, c = 1;
  cin >> n;
  for (int i = 1; i < n; i++) {
    d += c;
    if (d % n == 0)
      cout << n << ' ';
    else
      cout << d % n << ' ';
    c++;
  }
}
