N=int(input())
x=bin(N)
if x.count("1")==1:
    print(-1,-1,-1)
else:
    T=N&(-N)
    print(T,N,N^T)