atcoder#AGC051B. [AGC051B] Bowling

[AGC051B] Bowling

Score : 800800 points

Problem Statement

There are some number of bowling pins on a plane. Four people are observing the pins from different angles. Is it possible that one of the observers sees much more pins than the others?

Let's model the pins as a set of points on an xyxy-plane. The image below shows the positions of the four observers. Formally,

  • For observer A, two pins overlap if their yy-coordinates are the same.
  • For observer B, two pins overlap if their values of (xx-coordinate minus yy-coordinate) are the same.
  • For observer C, two pins overlap if their xx-coordinates are the same.
  • For observer D, two pins overlap if their values of (xx-coordinate plus yy-coordinate) are the same.

Let a,b,c,da, b, c, d be the number of pins the observers A, B, C, D see, respectively.

Construct any arrangement of bowling pins that satisfies the following constraints:

  • d10max{a,b,c}d \geq 10 \cdot \max \{ a, b, c \}
  • The number of pins is between 11 and 10510^5, inclusive.
  • The coordinates are integers between 00 and 10910^9, inclusive.
  • No two pins are placed at exactly the same place.

Input

There is no input.

Output

Print the answer in the following format, where NN is the number of pins and (xi,yi)(x_i, y_i) are the coordinates of the ii-th pin:

NN

x1x_1 y1y_1

::

xNx_N yNy_N

It must satisfy the conditions in the statement.


9
1 1
1 5
2 7
4 4
5 3
6 8
7 5
8 2
8 7

This sample output is provided for the sake of showing the output format and is not correct.

It matches the picture in the statement.

Here, d=8d = 8 and a=b=c=7a = b = c = 7. Nice try, but not enough to get AC.