T = int(input()) for i in range(T): ls = list(map(int,input().split())) ls.sort() a,b,c = ls x = a y = b*c z = b*c print(x,y,z)