#include <bits/stdc++.h>
using namespace std;
template <class _T>
inline _T sqr(const _T& x) {
  return x * x;
}
template <class _T>
inline string tostr(const _T& a) {
  ostringstream os("");
  os << a;
  return os.str();
}
template <class _T>
inline istream& operator<<(istream& is, const _T& a) {
  is.putback(a);
  return is;
}
const long double PI = 3.1415926535897932384626433832795;
const long double EPS = 1e-11;
int n;
int main() {
  cout << setiosflags(ios::fixed) << setprecision(10);
  cin >> n;
  int k = 1;
  int u = 1;
  for (int i = 0; i < n - 1; i++) {
    for (int j = 0; j < u; j++) {
      k = k + 1;
      if (k > n) k = 1;
    }
    u++;
    cout << k << " ";
  }
  return 0;
}
