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