#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 1; n != 0; i++) {
    cout << 1 << " " << i << endl;
    n--;
    if (i % 2 == 0 && n != 0) {
      cout << 4 << " " << i << endl;
      n--;
    }
  }
  return 0;
}
