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