#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k;
  cin >> n;
  for (j = 2, k = 0, i = 0; i < n - 1; j++, i++) {
    if ((j + k) % n == 0)
      cout << n << " ";
    else if (j + k - 1 >= n)
      cout << (j + k) % n << " ";
    else
      cout << j + k << " ";
    k = j + k - 1;
  }
  return 0;
}
