#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,c=0;
	cin>>a;
	while(a%2==0){
			a=a/2;
			c=c+1;	
	}
	cout<<c;
}

/**************************************************************
	Problem: 1244
	User: toughuatao1
	Language: C++
	Result: Accepted
	Time:14 ms
	Memory:2072 kb
****************************************************************/