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