#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, p, c;
  cin >> n;
  p = 1;
  c = 1;
  for (k = 1; k < n; k++) {
    p += c;
    p %= n;
    if (p == 0) p = n;
    cout << p << ' ';
    c++;
  }
  return 0;
}
