#include <bits/stdc++.h>
using namespace std;
set<long long int> v[100005];
long long int visi[100005];
int main(void) {
  long long int n, i = 1, j = 1, x;
  cin >> n;
  x = n;
  n--;
  while (n--) {
    i += j;
    i %= x;
    if (i == 0) i = x;
    cout << i << " ";
    j++;
  }
  cout << endl;
}
