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