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