Byteasar urgently needs two integer sequences for his research: an increasing one and a decreasing one. However, the only thing he has is a permutation (p_1,p_2,…,p_n) of the numbers in the range \[1,n]. Can you help him partition this permutation into two such sequences?
Formally, we're looking for two subsequences p_r_1,p_r_2,…,p_r_R and p_m_1,p_m_2,…,p_m_M (R,M≥0) such that:
The first line of the input contains a single integer t (1≤t≤50) -- the number of testcases in the input file. The following lines describe the consecutive testcases.
A single testcase description consists of two lines. The first of them contains an integer n (1≤n≤100,000) -- the length of the permutation (p_i). The following line contains n integers p_1,…,p_n (1≤p_i≤n and p_i=p_j for all i=j) -- the permutation itself.
For each testcase (in the order they appear in the input) you should output YES if the permutation can be partitioned into suitable subsequences or NO otherwise. If the partitioning is possible, you should output another two lines describing a sample solution. You should follow the format described below: R;p_r_1;p_r_2;…;p_r_R M;p_m_1;p_m_2;…;p_m_M In case there are many solutions, you can output any of them.