Problem: You are given three positive (i.e. strictly greater than zero) integers x, y and z.

Your task is to find positive integers a, b and c such that x = max(a, b), y = max(a, c) and z = max(b, c), or determine that it is impossible to find such a, b and c.

You have to answer t independent test cases. Print required a, b and c in any (arbitrary) order.

Input

The first line of the input contains one integer t (1 ≤ t ≤ 2 ⋅ 10^4) — the number of test cases. Then t test cases follow.

The only line of the test case contains three integers x, y, and z (1 ≤ x, y, z ≤ 10^9).

Output

For each test case, print the answer:

  * "NO" in the only line of the output if a solution doesn't exist; 
  * or "YES" in the first line and any valid triple of positive integers a, b and c (1 ≤ a, b, c ≤ 10^9) in the second line. You can print a, b and c in any order. 

Example

Input


5
3 2 3
100 100 100
50 49 49
10 30 20
1 1000000000 1000000000


Output


YES
3 2 1
YES
100 100 100
NO
NO
YES
1 1 1000000000

Solution (in PYTHON3):

Solution:
import sys

def isvalid(a, b, c, current):
    if current[0] == max(a, b) and current[1] == max(a, c) and current[2] == max(b, c):
        return True
    if current[1] == max(a, b) and current[2] == max(a, c) and current[0] == max(b, c):
        return True
    if current[2] == max(a, b) and current[0] == max(a, c) and current[1] == max(b, c):
        return True
    return False


info = sys.stdin.readlines()
amount = int(info[0])
data = [list(map(int, info[i].split())) for i in range(1, amount + 1)]
out1, out2, out3 = [], [], []
for i in range(len(data)):
    if data[i].count(max(data[i])) < 2:
        out1.append(i)
    elif data[i].count(max(data[i])) == 2:
        out2.append(i)
    elif data[i].count(max(data[i])) == 3:
        out3.append(i)
sol2 = []
for ind in out2:
    current = data[ind]
    mincontain = min(current)
    maxcontain = max(current)
    for pos in range(1, maxcontain + 1):
        if isvalid(mincontain, pos, maxcontain, current):
            sol2.append([str(mincontain), str(pos), str(maxcontain)])
            break
out = []
for i in range(amount):
    if i in out1:
        out.append('NO')
    elif i in out2:
        to_out = ' '.join(sol2[out2.index(i)])
        out.append('YES\n' + to_out)
    else:
        to_out = out3[out3.index(i)]
        to_out = data[to_out]
        to_out = ' '.join([str(to_out[i]) for i in range(len(to_out))])
        out.append('YES\n' + to_out)
print('\n'.join(out))