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