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