#include <bits/stdc++.h>
int main() {
  int n, c = 0;
  long long int k, i;
  scanf("%d%I64d", &n, &k);
  for (i = 1; i <= k; i *= 2) {
    if (k % i == 0) {
      c++;
      continue;
    } else
      break;
  }
  printf("%d", c);
  return 0;
}
