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