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