#include <bits/stdc++.h>
int main() {
  long long n, k;
  scanf("%I64d %I64d", &n, &k);
  while (k != 1 && n > 1) {
    long long t = (long long)1 << (n - 1);
    if (k == t) {
      printf("%I64d", n);
      return 0;
    } else if (k > t)
      k = k - t;
    n--;
  }
  printf("1");
}
