n=int(input()) for _ in range(n): a,b,c=map(int,input().split()) ans=a*b*c print(ans,ans,ans)