Making Zero

No attempts yetTime limit1sMemory limit128 MB

Problem

Consider the sequence 1 2 3 ... N, the integers from 11 to NN written in ascending order.

Between every pair of adjacent numbers, insert exactly one of the following:

  • + : addition
  • - : subtraction
  • (a space) : concatenate the two numbers into a single number

Evaluate the resulting expression. We want to find every case whose value equals 00.

Given an integer NN, write a program that prints every expression whose value is 00.

Input

The first line contains the number of test cases TT (T<10T < 10).

Each of the following lines contains one natural number NN (3N93 \le N \le 9).

Output

For each test case, print every expression whose value is 00, one per line, in ASCII (lexicographic) order. The ASCII order of the operator characters is space ( ), then +, then -.

Separate the outputs of different test cases with a single blank line. Do not print a blank line after the last test case.