#include <bits/stdc++.h>
using namespace std;
long long n, k;
long long solve(long long n, long long k) {
  if (k == (1ll << (n - 1))) return n;
  if (k > (1ll << (n - 1))) return solve(n - 1, k - (1ll << (n - 1)));
  return solve(n - 1, k);
}
int main() {
  cin >> n >> k;
  cout << solve(n, k);
}
