#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 10;
const long long NN = 2e2 + 20;
const long long mod = 998244353;
long long n;
long long cnt = 0;
int32_t main() {
  cin >> n;
  long long k = n / 3;
  for (long long i = -1; i <= 1; i++) {
    long long t = abs(i);
    for (long long j = 0; j < k; j++) {
      cout << i << " " << t << "\n";
      t += 2;
    }
  }
  n %= 3;
  if (n > 0) {
    n--;
    cout << "0 -2\n";
  }
  if (n > 0) {
    n--;
    cout << "0 -4\n";
  }
  return 0;
}
