def solve(): a, b, c = map(int, input().split()) print(*([a * b * c] * 3)) t = int(input()) for i in range(t): solve()