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