#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int n, c = 1, out = 1;
  cin >> n;
  for (int i = 1; i < n; i++, c++) {
    out = out + c;
    if (out > n) out -= n;
    cout << out << ' ';
  }
  cout << endl;
  return 0;
}
