n=int(input()) for i in range(30): if(n>>i)&1 and n!=1<