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