#include<bits/stdc++.h>
using namespace std;
int main(){
	int h=0,n;
	cin>>n;
	while(n%2==0){
		h++;
		n=n/2;
	}
	cout<<h;
}
/**************************************************************
	Problem: 1244
	User: hongjiaming
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/