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