#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
int main() {
  long long n, k;
  std::cin >> n >> k;
  if (k % 2 != 0) {
    std::cout << "1" << std::endl;
  } else {
    k -= 1;
    long long cou = 1;
    long long ans = 2;
    for (long long i = 0; i < 60; ++i) {
      if (k == cou) {
        std::cout << ans << std::endl;
        return 0;
      } else if ((k - cou) % (2 * cou + 1 + 1) == 0) {
        std::cout << ans << std::endl;
        return 0;
      }
      ans++;
      cou = 2 * cou + 1;
    }
  }
  return 0;
}
