using namespace std;
int main(){
	int n,h=0;
	cin>>n;
	while(n%2==0){
		h++;
	}
	cout<<h;
}
/**************************************************************
	Problem: 1244
	User: huxuanchen
	Language: C++
	Result: Compile Error
****************************************************************/