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