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