#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 1, 0};
int dy[] = {1, 0, -1};
int main() {
  int n;
  scanf("%d", &n);
  n--;
  puts("0 0");
  int k = n / 4;
  k++;
  for (int i = 1; i < k; i++) printf("0 %d\n0 -%d\n%d 0\n-%d 0\n", i, i, i, i);
  for (int i = 0; i < n % 4; i++) printf("%d %d\n", dx[i] * k, dy[i] * k);
  return 0;
}
