#include <bits/stdc++.h>
using namespace std;
ifstream in;
ofstream out;
const long long kk = 1000;
const long long ml = kk * kk;
const long long mod = ml * kk + 7;
const long long inf = ml * ml * ml + 7;
long long n, i, j;
vector<long long> m;
bool viv = false;
void solve3() {
  long long k = (n / 3) * 2;
  n -= k;
  for (i = 0; i < k; i++) cout << 0 << ' ' << i << '\n';
  long long y = 0;
  long long x = 3;
  while (n) {
    cout << x << ' ' << y << endl;
    if (x > 0) y += 2;
    n--;
  }
}
void solve4() {
  long long k = n / 2;
  n -= k;
  for (i = -k / 2; i < -k / 2 + k; i++) cout << i << ' ' << 0 << endl;
  k = n / 2;
  n -= k;
  long long y = 1;
  while (k) cout << 0 << ' ' << y << endl, y++, k--;
  y = -1;
  while (n) cout << 0 << ' ' << y << endl, y--, n--;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (n < 20) solve3();
  solve4();
  return 0;
}
