#include <bits/stdc++.h>
int main() {
  int n, i, t = 1, c = 1;
  scanf("%d", &n);
  for (i = 1; i < n; i++) {
    if ((t + c) == n)
      printf("%d ", (t + c));
    else if ((t + c) % n == 0) {
      printf("%d ", n);
    } else
      printf("%d ", (t + c) % n);
    c += i;
    t++;
  }
  return 0;
}
