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