#include <bits/stdc++.h>
using namespace std;
set<pair<int, int> > st;
int main() {
  int n;
  scanf("%d", &n);
  if (n <= 10) {
    for (int i = 1; i <= n; ++i) printf("1 %d\n", i);
    return 0;
  }
  int x = 2.0 / 3 * n;
  for (int i = 1; i <= x; ++i) st.insert(pair<int, int>(1, i));
  for (int i = 1; i <= x; ++i)
    if (~i & 1) st.insert(pair<int, int>(4, i));
  for (auto s : st) {
    if (!n--) break;
    printf("%d %d\n", s.first, s.second);
  }
  for (int i = 1; i <= n; ++i) printf("2 %d\n", i);
}
