#include<bits/stdc++.h>
using namespace std;
int main(){
  int i,n=0;
  cin>>i;
  while(i%2==0){
  i=i/2;
  n++;
  }
  cout<<n;
  
  

return 0;
}

/**************************************************************
	Problem: 1244
	User: qaz123123
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/