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