import sys input = sys.stdin.readline from collections import * for _ in range(int(input())): A, B, C = map(int, input().split()) m = min(A, B, C) if m==A: print(A*C, B*C, B*C) elif m==B: print(A*C, B*C, A*C) else: print(A*B, A*B, B*C)