#include <bits/stdc++.h>
using namespace std;
void input() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long j = 2;
  long long k = 2;
  for (int i = 1; i < n; i++) {
    if (k % n == 0) {
      cout << n << " ";
    } else {
      cout << k % n << " ";
    }
    k = k + j;
    ++j;
  }
  cout << "\n";
  return 0;
}
