#include <bits/stdc++.h>
using namespace std;
int tab[1001];
int temp[1001];
int main() {
  int n;
  cin >> n;
  int temp = 2;
  cout << 2 << " ";
  for (long long i = 2; i < n; i++) {
    temp += i;
    if (temp > n) {
      cout << temp - n << " ";
      temp -= n;
    } else
      cout << temp << " ";
  }
}
