for i in [0]*int(input()): a,b,c=map(int,input().split()) a*=b*c print(a,a,a)