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