N = int(input()) A = 0 B = 0 C = N for i in range(40): if (N>>i) & 1: if (1<