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