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