#include <bits/stdc++.h>
using namespace std;
const long long inf = 0x3f3f3f3f;
const int N = 1e5 + 10;
const long long mod = 998244353;
long long n, m, t, x, y, k, sum, cnt, ans;
int r, c;
int d[N], num[N];
set<int> v[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  int cnt = 0;
  for (int i = 0; cnt < n; ++i) {
    cout << 0 << " " << i << endl;
    ++cnt;
    if (cnt == n) break;
    if (i % 2) {
      ++cnt;
      cout << 3 << " " << i << endl;
    }
  }
}
