t=int(input()) for _ in range(t): l=int(input()) if l%2==1: b=(l*l-1)//2 c=b+1 print(l,b,c) else: b=(l*l-4)//4 c=b+2 print(l,b,c)