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