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