#include <bits/stdc++.h>
using namespace std;
const int N = 111111;
int main() {
  int n;
  cin >> n;
  int len = 1, pos = 1;
  for (int i = 1; i < n; ++i) {
    pos += len;
    while (pos > n) pos -= n;
    cout << pos << ' ';
    ++len;
  }
}
