T = int(input()) for i in range(T): L = int(input()) if L%2 == 0: B = (L**2-4) //4 C = B + 2 print(L,B,C) else: B = (L**2-1)//2 C = B+1 print(L,B,C)