#include <bits/stdc++.h>
int main() {
  int cnt = 2, n, pos = 2, l;
  scanf("%d", &n);
  l = n;
  while (n > 1) {
    if (pos > l) {
      pos = pos - l;
    }
    printf("%d", pos);
    if (n != 2) {
      printf(" ");
    }
    pos = cnt + pos;
    n--;
    cnt++;
  }
  printf("\n");
  return 0;
}
