#include <bits/stdc++.h>
using namespace std;
const long INF = 100000;
int grid[50][50];
long long int conv(long long int a, long long int k) {
  long long int ans = 0, len = 0;
  while (a != 0) {
    len++;
    long long int r = a % k;
    ans = ans * 10;
    ans += r;
    a /= k;
  }
  long long int finale = 0;
  while (ans != 0 && len) {
    long long int r = ans % 10;
    finale += r * pow(10, len - 1);
    len--;
    ans /= 10;
  }
  return finale;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  int temp = 2;
  for (int i = 2; i < n + 1; i++) {
    cout << temp << " ";
    temp = (temp + i);
    if (temp > n) temp = temp % n;
    if (temp == 0) temp++;
  }
  return 0;
}
