#include <bits/stdc++.h>
using namespace std;
int f[10001];
int main() {
  int n;
  cin >> n;
  f[0] = 1;
  for (int i = 1; i < n; i++) {
    f[i] = ((f[i - 1] + i - 1) % n) + 1;
    cout << f[i] << ' ';
  }
  return 0;
}
