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