#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N, i;
  cin >> N;
  int x = 0;
  for (i = 1; i <= N - 1; i++) {
    x = (x + i) % N;
    if (i != 1) cout << ' ';
    cout << x + 1;
  }
  cout << endl;
  return 0;
}
