#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, res[101];
  memset(res, 0, sizeof(res));
  scanf("%d", &n);
  int cur = 0;
  int next = 1;
  int throws = n - 1;
  while (throws--) {
    res[cur]++;
    cur += next;
    cur %= n;
    next++;
    if (throws)
      cout << cur + 1 << " ";
    else
      cout << cur + 1 << "\n";
  }
}
