Ones

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Let us define 1-expressions to be the numeric expressions containing only ones, addition signs, multiplication signs and parentheses. In such expressions no two digits can be neighboring -- every two ones must be separated by an operator. We follow the usual order of evaluating the expressions -- for example, the multiplication has larger priority than the addition.

For example, each of the following 1-expressions evaluates to 6:

(1+1)*(1+1+1), (1+1+1)*(1+1)*1, ((1+1)+1)*(1+1), 1+1+1+1+1+1, 1+(1+(1+(1+(1+1)))).

Formally, the following grammar describes all the correct 1-expressions EE:

E ::= 1 | E+E | E*E | (E+E) | (E*E)

Write a program that, given an integer kk (k109k \le 10^9), outputs a 1-expression evaluating to kk that contains at most 100 ones.

입력

The first line of the input contains a single integer tt (1t1001 \le t \le 100) -- the number of testcases.

Each of the following tt lines describe a single testcase. The ii-th of these lines describes the ii-th test and contains a single integer k_ik\_i (1k_i1091 \le k\_i \le 10^9).

출력

You should output exactly tt lines.

If there is no 1-expression evaluating to k_ik\_i and containing at most 100 ones, you should output NO in the ii-th line. Otherwise, the line should contain the required solution. You should not print any spaces inside the expression. If there is more than one correct solution, print any.