#include <bits/stdc++.h>
using namespace std;
bool SortbySecDesc(const pair<long long, long long> &a,
                   const pair<long long, long long> &b) {
  return a.second > b.second;
}
bool sortinrev(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.first > b.first);
}
int String_to_int(string s) {
  stringstream geek(s);
  int ans = 0;
  geek >> ans;
  return ans;
}
int S_I(string s) { return stoi(s); }
int main() {
  long long n;
  cin >> n;
  long long n1 = n;
  n--;
  long long i = 2;
  long long pos = 2;
  while (n != 0) {
    if (pos % n1 == 0) {
      cout << n1 << " ";
      pos = pos % n1;
      pos += i;
      i++;
      n--;
      continue;
    }
    cout << pos % n1 << " ";
    pos = pos % n1;
    pos += i;
    i++;
    n--;
  }
  return 0;
}
