#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int count = n - 1;
  int ball_person = 1;
  int gap = 1;
  while (count--) {
    ball_person += gap;
    ball_person = ball_person % (n);
    if (ball_person == 0) ball_person = n;
    cout << ball_person << " ";
    gap++;
  }
  cout << endl;
}
