for _ in range(int(input())): a, b, c = map(int, input().split()) x = a * b * c print(x, x, x)