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