#include using namespace std; int main() { int N;cin>>N; int c=0; bool b=false; while(N>1) { if(N%2==1) { b=true; } N/=2; c++; } if(b) { c++; } cout<