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