import sys from math import gcd input=sys.stdin.readline T=int(input()) for _ in range(T): A,B,C=map(int,input().split()) t=A*B*C print(t,t,t)