#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[100], n, k, u;
  cin >> n;
  for (k = 0; k < n; k++) a[k] = k + 1;
  k = 0;
  u = 0;
  while (k < n - 1) {
    k++;
    cout << a[(u + k) % n] << ' ';
    u = (u + k) % n;
  }
  return 0;
}
