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