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