#include <bits/stdc++.h>
using namespace std;
mt19937 rng(time(0));
uniform_int_distribution<int> uid(-1e9, 1e9);
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0;; ++i)
    for (int j = 0; j < 3; ++j)
      if ((i + j) % 2) {
        cout << i << ' ' << j << '\n';
        if (!(--n)) return 0;
      }
}
