N = int(input()) if str(N).count('1') == 1: print(-1, -1, -1) else: print(N, int(bin(N)[2:].replace('1', '0', 1), 2), int(bin(N)[2:][::-1].replace('1', '0', 1)[::-1], 2))