#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
  ll n, k;
  cin >> n >> k;
  ll count = 0;
  while (k % 2 != 1) {
    k /= 2;
    count++;
  }
  cout << count + 1 << endl;
}
