#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, x = 1;
  cin >> n;
  int a[n];
  for (int i = 1; i < n; i++) {
    x = x + i;
    if (x > n) x = x % n;
    cout << x << "   ";
  }
  return 0;
}
