#include <bits/stdc++.h>
inline int read() {
  int s = 0, w = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') s = s * 10 + ch - '0', ch = getchar();
  return s * w;
}
void write(int v) {
  if (v < 0) {
    putchar('-');
    v = -v;
  }
  if (v > 9) write(v / 10);
  putchar(v % 10 + '0');
}
int f[101] = {1};
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i < n; i++)
    f[i] = ((f[i - 1] + i - 1) % n) + 1, cout << f[i] << " ";
  return 0;
}
