#include <bits/stdc++.h>
const double PI = acos(-1.0);
const int DIR = 4;
const int X[] = {1, 0, -1, 0};
const int Y[] = {0, 1, 0, -1};
using namespace std;
int main() {
  int n;
  cin >> n;
  cout << 0 << ' ' << 0 << endl;
  int cur = 0;
  for (int i = 1; i <= n - 1; i++) {
    if (i % 4 == 1) cur++;
    if (i % 4 == 1)
      cout << cur << ' ' << 0 << endl;
    else if (i % 4 == 2)
      cout << 0 << ' ' << cur << endl;
    else if (i % 4 == 3)
      cout << -cur << ' ' << 0 << endl;
    else
      cout << 0 << ' ' << -cur << endl;
  }
  return 0;
}
