#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cout << 0 << ' ' << 0 << '\n';
  int m = (n - 1) / 4;
  for (int i = 1; i <= m; ++i) {
    cout << 0 << ' ' << i << '\n';
    cout << 0 << ' ' << -i << '\n';
    cout << i << ' ' << 0 << '\n';
    cout << -i << ' ' << 0 << '\n';
  }
  n -= 1 + m * 4;
  if (n > 0) cout << 0 << ' ' << m + 1 << '\n';
  if (n > 1) cout << m + 1 << ' ' << 0 << '\n';
  if (n > 2) cout << 0 << ' ' << -m - 1 << '\n';
}
