n = int(input()) if str(bin(n)).count('1') < 2: print("-1 -1 -1") else: a = n ch_b = str(bin(n)).find("1") ch_c = str(bin(n)).rfind("1") b = 1 << int(ch_b) c = (1 << int(ch_c)) + b print(a,b,c)