#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, a, k, i, m, l;
  cin >> t;
  a = 0;
  for (i = 1; i <= t; i++) {
    if (i % 3 != 0) {
      cout << a << " "
           << "0" << endl;
      a++;
    }
    if (i % 3 == 0) {
      cout << (a - 1) << " "
           << "3" << endl;
    }
  }
  return 0;
}
