SP260 CTAIN - Containers

Description

We are given _n_ containers, where 1

Input Format

One integer in the first line, stating the number of test cases, followed by a blank line. There will be not more than 20 tests. For each test case, at the first line, one positive integer _n_ is written, _n_

Output Format

For each test case : write one integer - the minimal number of moves which lead to the requested final situation or write only one word "NO" if it is not possible to reach the requested final situation making only allowed moves.