#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  for (int i = 1; n; i++) {
    if (i & 1)
      printf("%d 2\n", i), n--;
    else if (n == 1)
      printf("%d 1\n", i), n = 0;
    else
      printf("%d 1\n%d 3\n", i, i), n -= 2;
  }
  return 0;
}
