[print(t:=eval(input().replace(" ","*")),t,t)for i in [0]*int(input())]