a=int(raw_input("num"))
b=1

while a>2**b:
b=b+1

while b!=0:
b=b-1

c=a/(2**b)

a= a-(c*2**b)

print c



니들이라면 어떻게 만드냐?