#include <bits/stdc++.h>
using namespace std;
const long long MOD = (int)998244353;
long double sqr(long double a) { return a * a; }
void c(long long x, long long y) { cout << x << " " << y << "\n"; }
int main() {
  long long x = 1, y = 1, cnt;
  cin >> cnt;
  c(x, y);
  --cnt;
  x++;
  while (cnt) {
    c(x, y);
    cnt--;
    if (cnt)
      c(x + 1, y);
    else
      break;
    cnt--;
    if (cnt)
      c(x, y + 3);
    else
      break;
    cnt--;
    x += 2;
  }
  return 0;
}
