Codeforces Chloe and the sequence
//I am Just Not Good at it
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false)
#define bfast cin.tie(0)
#define outs(x) cout << x << " "
#define outn(x) cout << x << "\n"
#define sf scanf
#define pf printf
#define nl puts("")
#define psb push_back
typedef long long LL;
typedef vector<int>vii;
typedef vector<LL>vll;
const int mod = 1000007;
const int high = 100;
int main()
{
fast;
int n;
LL k;
while(cin >> n >> k)
{
int cnt=0;
while(k%2!=1)
{
cnt++;
k/=2;
}
cout << cnt+1 << "\n";
}
return 0;
}
Comments
Post a Comment