#include <bits/stdc++.h>
using namespace std;
const int MaxN = 100;
int main() {
  int n;
  cin >> n;
  bool mark[MaxN];
  for (int i = 0; i <= n; i++) mark[i] = 0;
  int next = 2;
  int cur = 1;
  for (int i = 0; i < n - 1; i++) {
    cout << cur + 1 << " ";
    mark[cur] = true;
    cur = (cur + next) % n;
    next++;
  }
  cout << endl;
  return 0;
}
