#include <bits/stdc++.h>
using namespace std;
const int oo = 1e9;
const int inf = 0x3f3f3f3f;
const long long OO = 1e18;
const long long INF = 0x3f3f3f3f3f3f3f3f;
const long double pi = acos(-1);
const long double e = 2.718281828459045;
const long double eps = 1e-8;
int main(int argc, char* argv[]) {
  int n;
  cin >> n;
  int n_ = n / 3;
  for (int i = 0; i ^ n_; ++i) {
    cout << 0 << ' ' << i * 2 << endl;
  }
  n_ = n - n_;
  for (int i = 0; i ^ n_; ++i) {
    cout << 3 << ' ' << i - 1 << endl;
  }
  return 0;
}
