#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  std::ios::sync_with_stdio(false);
  int n;
  cin >> n;
  cout << 2 << " ";
  int prev = 2;
  for (int i = 2; i < n; i++)
    cout << (prev + i) % n + ((prev + i) % n ? 0 : n) << " ",
        prev = (prev + i) % n;
  return 0;
}
