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