Irrational pairwise distances#639

Irrational pairwise distances

0,5 segundos
64 megabytes
Fácil (≈1000)

Construct a set of points on the Cartesian plane such that the following conditions are satisfied:

Entrada

The only line contains a natural number (1 \leq N \leq 1000) — the number of points in the set.

Salida

Output lines, each containing two integers — the coordinates of a point (separated by a space). The absolute value of each coordinate must not exceed .

It is guaranteed that such a set exists. If there are multiple possible sets, output any one of them.

Ejemplos

Ejemplo 1

Loading
Loading