#include <bits/stdc++.h>
using namespace std;
struct no {
  int r;
  int l;
  int p;
};
int main() {
  int n;
  cin >> n;
  int count = 1;
  int cc = 1;
  for (int i = 1; i < n; i++) {
    cc = (cc + count) % n;
    if (cc == 0)
      cout << n;
    else
      cout << cc;
    count++;
    if (count == n + 1)
      break;
    else
      cout << " ";
  }
  cout << endl;
  return 0;
}
