#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:200000000")
const double EPS = 1E-9;
const int INF = 1000000000;
const double PI = 3.1415926535897932384626433832795;
int main() {
  int n;
  cin >> n;
  vector<int> ans(n);
  int step = 1;
  ans[0] = 0;
  for (int i = 1; i < n; i++) {
    ans[i] = (ans[i - 1] + step) % n;
    step++;
  }
  for (int i = 1; i <= (int)(n - 1); i++) cout << ans[i] + 1 << ' ';
  cout << endl;
  return 0;
}
