for t in range(int(input())): A,B,C=map(int,input().split()) X=A*B*C print(X,X,X)