#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x = 0, y = 0;
  while (n) {
    cout << x << " " << y << endl;
    n--;
    if (!n) break;
    cout << x + 1 << " " << y << endl;
    n--;
    if (!n) break;
    cout << x + 1 << " " << y + 3 << endl;
    n--;
    x += 2;
  }
  return 0;
}
