#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n + 1];
  int m = 1;
  for (int i = 1; i < n; i++) {
    m += i;
    if (m > n) m = m - n;
    cout << m << " ";
  }
  return 0;
}
