#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int i = 1;
  int cur = 0;
  while (true) {
    int a = (cur + i) % n;
    i++;
    cur = a;
    if (i == n) {
      printf("%d\n", a + 1);
      break;
    }
    printf("%d ", a + 1);
  }
  return 0;
}
