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