#include<bits/stdc++.h>
typedef long long LL;
using namespace std;
int main()
{
LL n,k,sum,x,y,flag;
cin>>n>>k;
if(k%2)
{
cout<<1<<endl;
}
else
{
sum=0;
while(k)
{
sum++;
k/=2;
if(k%2)
{
break;
}
}
cout<<sum+1<<endl;
}
return 0;
}