#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k;
  cin >> n >> k;
  if (k % 2 != 0)
    cout << "1" << endl;
  else {
    long long int x = pow(2, n - 1), num = n;
    while (1) {
      if (k % x == 0) {
        cout << num << endl;
        return 0;
      }
      num--;
      x = pow(2, num - 1);
    }
  }
}
