#include <bits/stdc++.h>
using namespace std;
long long n, m;
int main() {
  scanf("%lld%lld", &n, &m);
  int ans = 1;
  while (1) {
    if (m % 2 == 1) {
      printf("%d", ans);
      break;
    } else {
      m /= 2;
      ans++;
    }
  }
  return 0;
}
