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