n = int(input()) for i in range(n): x = list(map(int,input().split())) x.sort() if x[2] < x[0]+x[1]: print(*x) else: z = x[2]-x[1] y = z//x[0] print(x[0]*(y+1),x[1],x[2])