N = int(input()) c = 0 for i in range(40): if (N>>i)&1: c += 1 if c==1: print(-1, -1, -1) exit() B, C = 0, 0 flag = True for i in range(40): if (N>>i)&1: if flag: B = 1<