#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long n, k;
  cin >> n >> k;
  long long cur = k, pos = 0;
  do {
    pos = 0;
    while (cur) {
      cur >>= 1;
      pos++;
    }
    k -= (1LL << (pos - 1));
    cur = k;
  } while (cur);
  cout << pos << endl;
  return 0;
}
