#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> d;
  d.resize(n + 1);
  int pos = 1;
  for (int i = 1; i < n; ++i) {
    pos = pos + i;
    if (pos > n) pos -= n;
    cout << pos << ' ';
  }
  return 0;
}
