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