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