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