#include using namespace std; int n; int main(){ cin>>n; n--; int t=0; while(n){ if(n%2==0) t++; n/=2; t++; } cout<