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