#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k = 1, ans = 1;
  cin >> n;
  int m = n;
  n--;
  while (n--) {
    ans += k;
    k++;
    ans %= m;
    if (!ans) ans = m;
    cout << ans << " ";
  }
}
