t = int(input()) for i in range(t): a, b, c = map(int, input().split()) p = a * b * c print(p, p, p)