#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int count, r = 1;
  vector<int> nums;
  for (int i = 1; i <= n; i++) {
    if (i + r > n) {
      r = r + i - n;
    } else
      r += i;
    nums.push_back(r);
  }
  for (int i = 0; i < nums.size() - 1; i++) cout << nums[i] << " ";
  return 0;
}
