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