#include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
const int MOD = 1e9 + 7;
const int inf = 1e18;
int main() {
  int n;
  cin >> n;
  int cnt = 1;
  int a = 1;
  for (int i = 1; i <= n - 1; i++) {
    a += cnt;
    a %= n;
    if (a == 0) a = n;
    cout << a << ' ';
    cnt++;
  }
  return 0;
}
