#include <bits/stdc++.h>
using namespace std;
void swapll(long long *a, long long *b) {
  long long tmp = *a;
  *a = *b;
  *b = tmp;
}
void swapc(char *a, char *b) {
  char tmp = *a;
  *a = *b;
  *b = tmp;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> pos;
  long long current = 1;
  for (long long i = 1; i <= n - 1; i++) {
    current += i;
    if (current > n) {
      current -= n;
    }
    pos.push_back(current);
  }
  for (long long i = 0; i < pos.size(); i++)
    cout << pos[i] << (i + 1 < pos.size() ? ' ' : '\n');
  ;
  return 0;
}
