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