t=int(input()) for i in range(t): a,b,c=map(int,input().split()) d=a*b*c print(d,d,d)