#include <bits/stdc++.h>
using namespace std;
int solve(int n, long long k) {
  long long m;
  m = 1LL << (n - 1);
  if (k == m) return n;
  return solve(n - 1, k < m ? k : k - m);
}
int main(void) {
  int n;
  long long k;
  scanf("%d %I64d", &n, &k);
  printf("%d\n", solve(n, k));
  return 0;
}
