#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const long long maxn = (long long)1e5 + 5;
const long double EPS = 1e-9;
const long long INF = (long long)1e18 + 18;
const long long MOD = (long long)1e9 + 7;
long long n;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  long long i = 0;
  for (long long cnt = 0; cnt < n;) {
    cout << i << " 0" << endl;
    cnt++;
    if (cnt < n) cout << i + 1 << " 0" << endl, cnt++;
    if (cnt < n) cout << i + 1 << " 3" << endl, cnt++;
    i += 2;
  }
  return 0;
}
