N = int(input()) if(N.bit_count() == 1): print(-1,-1,-1) else: ans = [0,0,0] ptr = 0 for i in range(30): if(N>>i & 1 == 0):continue ans[ptr] += 1<