#include <bits/stdc++.h>
int main() {
  int child;
  scanf("%d", &child);
  int current(0);
  for (int k = 1; k < child; k++) {
    current += k;
    current %= child;
    printf("%d ", current + 1);
  }
  printf("\n");
  return 0;
}
