#include <bits/stdc++.h>
using namespace std;
int main() {
  int k = 1, x = 1, n, a[100000], kol = 0;
  cin >> n;
  for (int i = 1; i < n; i++) {
    k += x;
    if (k > n) k -= n;
    a[kol++] = k;
    x++;
  }
  for (int i = 0; i < kol; i++) cout << a[i] << " ";
}
