#include <bits/stdc++.h>
using namespace std;
bool vis[(1000)];
int n;
void work() {
  scanf("%d", &n);
  int sum = 0;
  for (int i = 1; i < n; i++) {
    sum = (sum + i) % n;
    printf("%d", sum + 1);
    if (i == n - 1)
      printf("\n");
    else
      printf(" ");
  }
}
int main() {
  work();
  return 0;
}
