#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= 2 * n / 3; ++i) cout << 1 << ' ' << i << '\n';
  n -= 2 * n / 3;
  for (int i = 2; n; i += 2, --n) cout << 4 << ' ' << i << '\n';
  return 0;
}
