You are given an integer N.  Find a triple of positive integers h, n and w such that 4/N = 1/h + 1/n + 1/w.  If there are multiple solutions, any of them will be accepted.
N=int(input())
for i in range(1,3501):
    for j in range(1,3501):
        if N*((i+j)/(i*j))/4==int(N*((i+j)/(i*j))/4):
            h=i
            n=j
            w=int(N*((i+j)/(i*j))/4)
            break
print(h,n,w)
N=int(input())
for i in range(1,3501):
    for j in range(i,3501):
        bw=4*i*j-N*i-N*j
        if bw<=0:
            continue
        if (N*i*j)%bw==0:
            print(i,j,(N*i*j)//bw)
            exit()