#include <bits/stdc++.h>
using namespace std;
int n, x = 1;
int main() {
  cin >> n;
  for (int i = 1; i < n; i++) {
    if (x + i <= n)
      x += i;
    else
      x = i - (n - x);
    cout << x << ' ';
  }
  cout << '\n';
}
