Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

G. Challenging Balloons

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputMartha — as a professional problemsetter — proposed a problem for a world-class contest. This is the problem statement:

Tomorrow is Nadia's birthday, and Bardia (her brother) is assigned to make the balloons ready!

There are *n* balloons (initially empty) that are tied to a straight line on certain positions *x*_{1}, *x*_{2}, ..., *x*_{n}. Bardia inflates the balloons from left to right. As a result, *i*-th balloon gets bigger and bigger until its radius reaches the pressure endurance *p*_{i} or it touches another previously-inflated balloon.

While Bardia was busy with the balloons, he wondered "What will be the sum of radius of balloons after all of the balloons are inflated?". Being a nerdy type of guy, he is now thinking about the problem instead of preparing his sister's birthday. Calculate the answer to Bardia's problem so that Nadia's birthday won't be balloon-less.

Artha — Martha's student — claimed his solution got accepted. Martha (being his teacher for a long time!) knew he couldn't have solved the problem for real and thus thinks there is something wrong with the testcases. Artha isn't anyhow logical, which means there is no way for Martha to explain the wrong point in his algorithm. So, the only way is to find a testcase to prove him wrong!

Artha's pseudo-code is shown below:

You should output a small testcase for the problem such that Artha's algorithm is incorrect. The algorithm's output is considered correct if it differs from the correct value by no more than 1.

Input

Please pay attention! No input will be given to your program for this problem. So you do not have to read from the input anything.

Output

You should output the generated small testcase (which Artha's solution doesn't get it right). It should be in the following format:

- First line must contain the only number
*n*(1 ≤*n*≤ 500). - The
*i*-th of the next*n*lines should contain the description of the*i*-th balloon — two space-separated integers*x*_{i},*p*_{i}(1 ≤*p*_{i}≤ 10^{6}, 0 ≤*x*_{1}<*x*_{2}< ... <*x*_{n}≤ 10^{6}).

Examples

Note

The testcase depicted in the figure above (just showing how output should be formatted):

4

0 9

6 3

12 7

17 1

Codeforces (c) Copyright 2010-2020 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jan/20/2020 08:11:57 (e1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|