#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline T sqr(T x) {
  return x * x;
}
template <typename T>
inline T abs(T x) {
  return x < 0 ? -x : x;
}
template <typename T>
inline T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
template <typename T>
inline bool chmin(T& x, const T& y) {
  if (x > y) {
    x = y;
    return 1;
  }
  return 0;
}
template <typename T>
inline bool chmax(T& x, const T& y) {
  if (x < y) {
    x = y;
    return 1;
  }
  return 0;
}
inline void read(int& n) {
  n = 0;
  bool neg = 0;
  register int c = getchar();
  while ((c < 48 || c > 57) && c != '-') c = getchar();
  if (c == '-') neg = 1, c = getchar();
  while (c > 47 && c < 58) n = (n << 3) + (n << 1) + (c ^ 48), c = getchar();
  if (neg) n = -n;
}
void solve() {
  int n;
  cin >> n;
  int c = 1, j = 1;
  for (int i = 0; i < n - 1; ++i) {
    c = c + j;
    j++;
    if (c > n) {
      c = c - n;
    }
    cout << c << " ";
  }
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  solve();
}
