#include <bits/stdc++.h>
using namespace std;
const long long int maxN = 1E5 + 10;
const long long int mod = 1E9 + 7;
const long long int INF = 1E9;
int32_t main() {
  long long int n;
  cin >> n;
  long long int turn = 1, ind = 1;
  vector<long long int> otp;
  while (turn < n) {
    ind += turn;
    ind %= n;
    if (ind == 0) ind = n;
    turn++;
    otp.push_back(ind);
  }
  for (long long int i = 0; i < otp.size(); ++i) cout << otp[i] << ' ';
  return 0;
}
