N=int(input()) #print(bin(N).count("1")) m=1 count=1 flag=0 list=[] while m