E. Equalize
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

You are given an array $$$a$$$ consisting of $$$n$$$ positive integers. You can perform the following two kinds of operations.

  1. Choose an index $$$i$$$ ($$$1 \le i \le n$$$) and multiply $$$a_i$$$ by $$$2$$$.
  2. Choose an integer $$$x$$$ ($$$-10^9 \le x \le 10^9$$$) and subtract it from all elements in the array.

Find any sequence of at most $$$20 n$$$ operations such that all elements of $$$a$$$ become equal after performing them.

Input

The first line of the input contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases. The description of the test cases follows.

The first line contains a single integer $$$n$$$ ($$$1 \le n \le 10^5$$$) — the number of elements in the array.

The second line contains $$$n$$$ integers $$$a_1,a_2,\ldots,a_n$$$ ($$$1 \le a_i \le 10^6$$$) — the elements of the array.

It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.

Output

For each test case, on the first line print $$$k$$$ ($$$0 \le k \le 20 n$$$) — the number of operations to be performed, followed by $$$k$$$ lines each of which are one of the following two kinds.

  1. If the operation is of the first kind, print 1 i where $$$i$$$ ($$$1 \le i \le n$$$) is the chosen index.
  2. If the operation is of the second kind, print 2 x where $$$x$$$ ($$$-10^9 \le x \le 10^9$$$) is the integer to be subtracted from all elements of $$$a$$$.

Note that at all times, every integer in $$$a$$$ must satisfy $$$-10^9 \le a_i \le 10^9$$$.

If there are multiple possible sequences of operations, you may print any of them.

Example
Input
3
5
4 19 5 7 11
3
296 168 48
2
99 99
Output
11
2 3
1 1
1 1
1 1
1 1
1 3
1 3
1 3
1 4
1 4
1 5
7
2 40
1 2
1 3
1 3
1 3
1 3
1 3
0