#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  while (scanf("%d", &n) != EOF) {
    m = 1;
    for (int i = 1; i < n; i++) {
      m += i;
      m %= n;
      if (m == 0) m += n;
      printf("%d ", m);
    }
    printf("\n");
  }
  return 0;
}
