t=int(input()) for i in range(t): a,b,c=map(int,input().split()) A=10**18//a B=10**18//b C=10**18//c print(a*A,b*B,c*C)