for _ in range(int(input())): a, b, c = map(int, input().split()) t = [a, b, c] t.sort() a = t[0] b = t[1] c = t[2] for i in range(1, 10**5+1): if not (1 <= a*i <= 10**18): continue for j in range(1, 10**5+1): if not (1 <= b*j <= 10**18): continue if b*j < a*i: continue for k in range(1, 10**5+1): if c*k < b*j: continue if a*i+b*j > c*k and 1 <= c*k <= 10**18: print(a*i, b*j, c*k) exit(0)