#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k = 1;
  cin >> n;
  while (k * k < n) k++;
  int l = (n - 1) / k + 1;
  int m = 0;
  for (int i = 0; i < k; i++) {
    for (int j = 0; j <= n / 3; j++) {
      int r = i / 3 * 8 + 1;
      if (i % 3 == 1) r += 3;
      int c = j * 2 + 1;
      if (i % 3) c++;
      printf("%d %d\n", c, r);
      m++;
      if (m == n) break;
    }
    if (m == n) break;
  }
}
