t = int(input()) def Cho(l): l.sort() a = l[0] b = l[1] c = l[2] #print(a,b,c) if a+b > c: print(*[a,b,c]) return 0 a = a+c-c%a b = b+c-c%b Cho([a,b,c]) for _ in range(t): a_, b_, c_ = map(int,input().split()) l = [a_,b_,c_] Cho(l)