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