#include<bits/stdc++.h> using namespace std; int main(){ int a; int ans=0; scanf("%d",&a); while(a>1){ a=a/2; ans++; } cout<<ans<<endl; return 0; }