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