#include <bits/stdc++.h>
using namespace std;
int x, y, n;
int main() {
  cin >> n;
  x = -1;
  for (int i = 1; i <= n; i++) {
    if (i % 3 == 0)
      y = 3;
    else
      y = 0, x++;
    cout << x << " " << y << endl;
  }
}
