#include <bits/stdc++.h>
using namespace std;
void prepare() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
int main() {
  int n;
  cin >> n;
  if (n == 2) {
    printf("2");
    return 0;
  }
  int i = 2, k = 2;
  int j;
  for (j = 1; j < n; j++) {
    i %= n;
    if (i == 0) i = n;
    printf("%d ", i);
    i += k;
    k++;
  }
  return 0;
}
