The Legend Was Invented, but Not the Name#11695

The Legend Was Invented, but Not the Name

1 second
256 megabytes
Very hard

How did the evil Chmyaaax become evil? The evil Chmyaaax was once a regular Max who was solving problems on Eolymp. He became evil because of a problem he couldn't solve. So, the legend about him was born, and although the truth about it remains unknown, the problem itself has survived. So, here is Frus' record about this problem:

You are given two numbers and . You need to find an array of numbers such that the sum of the squares of these numbers is equal to 10^{15} + x, and the sum of the cubes is equal to 10^{15} + y. Formally, you need to find any array of numbers such that:

a_1^2 + a_2^2 + \dots + a_m^2 = 10^{15} + x
a_1^3 + a_2^3 + \dots + a_m^3 = 10^{15} + y

where is the number of elements in this array.

Input

The first and only line contains two integers and (0 \le x, y \le 10^{9}).

Output

In the first line, you need to output only one integer (1 \le n \le 2 \cdot 10^5) — the number of distinct elements in the array .

In the next lines, you need to output the information about the array in the following form:

c_i\,k_i

That means that there are k_i elements in the array that are equal to c_i (1 \le i \le n, 1 \le c_i \le 10^{9}, 1 \le k_i \le 10^{16}).

All c_i must be pairwise distinct.

If there are multiple answers, you can output any of them.

If there are no such arrays, you need to output .

Examples

Example

Loading
Loading

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

In the first example, there are 10^{15} - 3 elements equal to and element equal to . In this way, the sums are following:

(10^{15} - 3) \cdot 1^2 + 1 \cdot 2^2 = 10^{15} + 1

(10^{15} - 3) \cdot 1^3 + 1 \cdot 2^3 = 10^{15} + 5

In the second example, there are 10^{15} + 1 elements equal to and entry of each number from to :

(10^{15} + 1) \cdot 1^2 + 1 \cdot 2^2 + 1 \cdot 3^2 + 1 \cdot 4^2 + 1 \cdot 5^2 = (10^{15} + 1) + 4 + 9 + 16 + 25 = 10^{15} + 55

(10^{15} + 1) \cdot 1^3 + 1 \cdot 2^3 + 1 \cdot 3^3 + 1 \cdot 4^3 + 1 \cdot 5^3 = (10^{15} + 1) + 8 + 27 + 64 + 125 = 10^{15} + 225

In the third sample, it can be shown that there are no arrays that would satisfy the conditions.

Scoring

  1. ( points): x = y;

  2. ( points): x > y;

  3. ( points): x, y \le 99999;

  4. ( points): no additional constraints.