#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n / 3; i++) {
    cout << 1 << " " << 2 * i << endl;
  }
  for (int i = 1; i <= n - n / 3 - n / 3; i++) {
    cout << 2 << " " << 2 * i + 1 << endl;
  }
  for (int i = 1; i <= n / 3; i++) {
    cout << 3 << " " << 2 * i << endl;
  }
}
