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