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