#include <bits/stdc++.h>
using namespace std;
long long Solve(long long n, long long k) {
  long long low = 1;
  long long high = ((long long)1 << n) - 1;
  long long mid = low + (high - low) / 2;
  if (mid == k)
    return n;
  else if (mid < k)
    return Solve(n - 1, k - mid);
  else
    return Solve(n - 1, k);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k;
  cin >> n >> k;
  cout << Solve(n, k) << endl;
  return 0;
}
