#include <bits/stdc++.h>
using namespace std;
int size_n;
int main() {
  int ii;
  int cur;
  cin >> size_n;
  for (ii = 1, cur = 0; ii < size_n; ii++) {
    cur += ii;
    cur %= size_n;
    cout << (cur + 1) << " ";
  }
  return 0;
}
