Roger loves solving puzzles. He recently found a mysterious safe that requires a special code to open. The code consists of four digits. Roger has compiled a list of possible codes he could try. However, testing all possibilities would take too long, so he wants to reduce the list.
A valid code satisfies a certain condition, which we call the 24 condition. Four digits that satisfy the 24 condition can be combined using addition, subtraction, multiplication, division, and parentheses, in such a way that the end result equals 24.
For example, the code (4, 7, 8, 8) satisfies the 24 condition, because (7-8/8)*4 . The code (1, 1, 2, 4) does not satisfy the 24 condition, nor does (1, 1, 1, 1). These codes cannot possibly open the safe, so they can be ignored.
Write a program that takes a list of possible codes and determines for each whether it satisfies the 24 condition or not.
The first line contains one positive number: the number of test cases, at most . Each test case consists of one line with four space-separated integers , , , (1 \leq a, b, c, d \leq 9): a possible code.
For each test case, output one line with either "YES" or "NO", indicating whether the code satisfies the 24 condition or not.
Example 1