def k_bits(n,k): """ subset with popcnt = k in (1<>1)|y x=int(input()) P=list(k_bits(31,x)) print(len(P),sum(P))