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