n=int(input()) for i in range(n): a,b,c=map(int,input().split()) p=a*b*c p=str(p) print(p+" "+p+" "+p)