N = int(input()) if N < 3 or (bin(N)[2:]).count('1') == 1: print(-1, -1, -1) else: print(1, N-1, N)