#include <bits/stdc++.h>
int main() {
  int n, i = 0, ch = 1, k = 1;
  scanf("%d", &n);
  while (i < n - 1) {
    ch += k;
    if (ch > n) {
      if (ch % n != 0)
        printf("%d ", ch % n);
      else
        printf("%d ", n);
    } else
      printf("%d ", ch);
    k++;
    i++;
  }
  return 0;
}
