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