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