#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, counter = 1;
  cin >> n;
  int child = 1;
  for (int i = 0; i < n - 1; i++) {
    if (child + counter <= n) {
      child += counter;
      cout << child << " ";
      counter++;
    } else {
      child = (child + counter) % n;
      cout << child << " ";
      counter++;
    }
  }
}
