#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int i = 2;
  int k = 1;
  int j = n - 1;
  while (j != 0) {
    cout << i << " ";
    k++;
    i += k;
    if (i > n) i -= n;
    j--;
  }
  cout << endl;
  return 0;
}
