You are given a multiset s consisting of n integers. You should perform the following three-step operation some number of times until a single integer remains in s.
Find a sequence of operations that maximizes the integer left in s.
The first line contains a single integer n (2≤n≤105).
The second line contains n integers s_1,s_2,…,s_n (0≤s_i≤105).
On the first line, print a single integer k (1≤k≤n−1), the number of operations.
On each of the next k lines, print an integer m (2≤m≤n), the size of the chosen multiset t, followed by m integers, t_1,t_2,…,t_m.
Note that the operations are executed in the same order they are listed. So, for each operation, t must be a subset of s when all the preceding operations are performed.
The sample does the following operations:
| Chosen t | New s | |
| 0 | 24,33,48,63,90,93,97 | |
| 1 | 33,90,93 | 24,48,60,63,97 |
| 2 | 60,63 | 3,24,48,97 |
| 3 | 24,48 | 3,24,97 |
| 4 | 3,24,97 | 94 |
The values underlined in s denote the integer inserted. After the fourth operation, s is reduced to a single integer value of 94. It can be shown that no other sequence of operations results in a larger value.