a=STDIN.gets.to_i ans=0 add=1 while a>0 do if a % 2 == 1 ans=add end add+=1 a/=2 end puts ans