#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 1; i <= n; i++) cout << i * 2 / 3 << ' ' << i * 2 % 3 << endl;
  return 0;
}
