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