#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 1, x = 1, y = 1;
  cin >> n;
  vector<int> arr;
  while (c < n) {
    x += y;
    y += 1;
    c += 1;
    if (x > n) x -= n;
    arr.push_back(x);
  }
  for (c = 0; c < arr.size(); c++) cout << arr[c] << " ";
  cout << endl;
}
