#include <bits/stdc++.h>
using namespace std;
inline void read(int &x) {
  x = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    x = x * 10 + c - '0';
    c = getchar();
  }
  x *= f;
}
inline unsigned int R() {
  static unsigned int seed = 416;
  return seed ^= seed >> 5, seed ^= seed << 17, seed ^= seed >> 13;
}
const int N = 23;
int main() {
  int x;
  read(x);
  if (x <= 2) {
    for (register int i = 1; i <= x; i++) printf("%d %d\n", i, i);
    return 0;
  }
  int n = x / 3;
  for (register int i = 1; i <= n; i++)
    printf("%d %d\n%d %d\n%d %d\n", i * 2, 1, i * 2 - 1, 2, i * 2, 3);
  for (register int i = 3 * n + 1; i <= x; i++)
    printf("%d %d\n", 10000 + i, 10000 + i);
  return 0;
}
