#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", 2, i * 2);
    printf("%d %d\n", 0, i * 2);
    printf("%d %d\n", -2, i * 2);
  }
  int k = n % 3;
  if (k) printf("%d %d\n", 2, (m + 1) * 2), k--;
  if (k) printf("%d %d\n", -2, (m + 1) * 2), k--;
}
