#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  int pos = 1;
  printf("%d", 2);
  for (int n = 1; n < N - 1; n++) {
    pos = (pos + (n + 1)) % N;
    printf(" %d", pos + 1);
  }
  printf("\n");
  return 0;
}
