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