#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, k;
  cin >> n >> k;
  n = 1;
  while (k % 2 == 0) {
    k /= 2;
    n++;
  }
  cout << n << "\n";
  return;
}
int main() {
  std::ios::sync_with_stdio(false);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
