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