#include <bits/stdc++.h>
using namespace std;
long long power(long long b, long long p) {
  long long r = 1;
  while (p > 0) {
    if (p % 2) r = r * b;
    b = b * b;
    p /= 2;
  }
  return r;
}
long long logic(long long k, long long n) {
  long long i, j;
  for (i = 1; i <= n; ++i) {
    if ((k - power(2, i - 1)) % power(2, i) == 0) return i;
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k;
  cin >> n >> k;
  long long sz = 1, i;
  for (i = 1; i < n; ++i) sz = 2 * sz + 1;
  cout << logic(k, n);
  return 0;
}
