#include <bits/stdc++.h>
using namespace std;
void scanint(int &x) {
  register int c = getchar();
  x = 0;
  int neg = 0;
  for (; ((c < 48 || c > 57) && c != '-'); c = getchar())
    ;
  if (c == '-') {
    neg = 1;
    c = getchar();
  }
  for (; c > 47 && c < 58; c = getchar()) {
    x = (x << 1) + (x << 3) + c - 48;
  }
  if (neg) x = -x;
}
int main() {
  int n, l = 1;
  scanint(n);
  for (int i = 1; i < n; i++) {
    l += i;
    if (l > n) {
      l -= n;
      cout << l << " ";
    } else
      cout << l << " ";
  }
}
