#include <bits/stdc++.h>
using namespace std;
long long n, k;
int main() {
  cin >> n >> k;
  int ans = 1;
  while ((k & 1LL) == 0) {
    ++ans;
    k = k >> 1;
  }
  printf("%d\n", ans);
  return 0;
}
