#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
double eps = 0.000001;
int vis[105];
int main() {
  int n;
  cin >> n;
  int tmp = n - 1;
  int p = 1;
  int num = 1;
  int i;
  int line = 0;
  int cnt = 0;
  while (1) {
    p += num;
    if (p > n) {
      p %= n;
    }
    cnt++;
    if (!line)
      printf("%d", p);
    else
      printf(" %d", p);
    line = 1;
    if (cnt == n - 1) break;
    num++;
  }
  printf("\n");
  return 0;
}
