#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  if (n <= 10) {
    for (int i = 0; i < (signed)(n); i++) {
      cout << i << " " << i << "\n";
    }
    return 0;
  }
  int v = (n + 5) / 3;
  cout << "0 0\n";
  int x = 1;
  for (int i = (1); i <= (signed)(v - 1); i++) {
    cout << i << " 0\n0 " << i << "\n";
    if (i <= v - 3 && i != 2) {
      cout << i << " " << i << "\n";
    }
  }
  if (n % 3 == 2) {
    cout << v - 2 << " " << v - 2 << "\n";
  }
  if (n % 3 == 0) {
    cout << v - 2 << " " << v - 2 << "\n";
    cout << v << " 0\n";
  }
  return 0;
}
