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