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