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