def solve(lst): a,b,c = lst m = min(a,b,c) lst.sort() if a == m: x = (lst[2]-lst[1])//a+1 a *= x if b == m: x = (lst[2]-lst[1])//b+1 b *= x if c == m: x = (lst[2]-lst[1])//c+1 c *= x return a,b,c T = int(input()) for _ in range(T): print(*solve(list(map(int,input().split()))))