#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  int num = 1;
  cin >> n;
  for (int i = 1; i < n; i++) {
    if ((num + i) <= n) {
      num = num + i;
      cout << num << " ";
    } else {
      num = num + i - n;
      cout << num << " ";
    }
  }
}
int main() {
  cin.tie(0)->sync_with_stdio(0);
  cout << fixed << setprecision(15);
  solve();
}
