#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k;
  long long a[51];
  while (cin >> n >> k) {
    a[0] = 1;
    for (int i = 1; i <= n; i++) {
      a[i] = 2 * a[i - 1] + 1;
    }
    int p = n;
    int flag = 1;
    while (flag == 1) {
      if (k == (a[p] + 1) / 2) {
        printf("%d\n", p + 1);
        break;
      }
      if (k > (a[p] + 1) / 2) k = a[p] + 1 - k;
      p--;
    }
  }
  return 0;
}
