#include <bits/stdc++.h>
using namespace std;
int read() {
  int tot = 0, fh = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') fh = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    tot = tot * 10 + c - '0';
    c = getchar();
  }
  return tot * fh;
}
void getstr(char *a) {
  char ch = getchar();
  int len = 0;
  while (ch < 'A' || ch > 'Z') ch = getchar();
  while (ch >= 'A' && ch <= 'Z') {
    a[++len] = ch;
    ch = getchar();
  }
}
int n;
int main() {
  n = read();
  n--;
  int num = n / 4;
  if (num % 4 > 1) num++;
  cout << "0 0"
       << "\n";
  for (int i = 1; i <= num; i++) {
    cout << i << " " << 0 << "\n";
    cout << 0 << " " << i << "\n";
  }
  n -= num * 2;
  num = n / 2;
  for (int i = 1; i <= num; i++) cout << 0 << " " << -i << "\n";
  for (int i = 1; i <= n - num; i++) cout << -i << " " << 0 << "\n";
  return 0;
}
