#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x, y, k;
  vector<pair<long long int, long long int> > loc;
  cin >> k;
  for (long long int i = 0; i < k; i++) {
    if (i % 2 == 0) {
      loc.push_back(make_pair(i, 0));
    } else {
      loc.push_back(make_pair(i, 0));
      loc.push_back(make_pair(i, 3));
    }
  }
  for (long long int i = 0; i < k; i++)
    cout << loc[i].first << " " << loc[i].second << endl;
  return 0;
}
