#include <bits/stdc++.h>
using namespace std;
long long n;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  long long a = 0, b = 1, c = 0;
  for (long long i = 0; i < n; i++) {
    if (i % 3 == 0) {
      cout << a << " 1" << endl;
      a += 2;
    }
    if (i % 3 == 1) {
      cout << b << " 0" << endl;
      b += 2;
    }
    if (i % 3 == 2) {
      cout << c << " -1" << endl;
      c += 2;
    }
  }
  return 0;
}
