#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int N = 1000000;
int n, k, m;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  k = 1;
  for (int i = 1; i <= n - 1; i++) {
    k += i;
    if (k > n) k %= n;
    cout << k << " ";
  }
  return 0;
}
