#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool single = false;
  int i = 1;
  while (n) {
    if (single) {
      cout << 2 << " " << i << endl;
      n--;
    } else {
      cout << 1 << " " << i << endl;
      n--;
      if (n) {
        cout << 3 << " " << i << endl;
        n--;
      }
    }
    i++;
    single = !single;
  }
  return 0;
}
