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