#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
const long long mod = 1e9 + 7;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n * 2 / 3; ++i) cout << 0 << ' ' << i << endl;
  for (int i = 1; i <= n - n * 2 / 3; ++i) cout << 3 << ' ' << i * 2 << endl;
}
