#include <bits/stdc++.h>
using namespace std;
long long n, k;
int main() {
  cin >> n >> k;
  int cnt = 0;
  while (k) {
    if (k % 2) {
      break;
    }
    k /= 2;
    cnt++;
  }
  cout << cnt + 1 << endl;
}
