#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int m = 1;
  for (int i = 1; i < n; i++) {
    m += i;
    if (m > n) m -= n;
    printf("%d%s", m, i == n ? "\n" : " ");
  }
  return 0;
}
