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