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