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