#include <bits/stdc++.h>
int main() {
  int n, i, p = 2;
  scanf("%d", &n);
  printf("%d", p);
  for (i = 2; i < n; ++i) {
    p += i;
    if (p > n) {
      p -= n;
    }
    printf(" %d", p);
  }
  printf("\n");
  return 0;
}
