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