#include <bits/stdc++.h>
int main() {
  long long n, k;
  while (~scanf("%lld %lld", &n, &k)) {
    long long ans, t = 1;
    while (k % 2 == 0) {
      k /= 2;
      t++;
    }
    printf("%lld\n", t);
  }
  return 0;
}
