#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k;
  cin >> n >> k;
  if (k % 2)
    cout << "1";
  else {
    long long int buffer = 1;
    for (int i = 1; i <= 50; i++) buffer *= 2;
    while (k % buffer) buffer /= 2;
    cout << log2(buffer) + 1;
  }
}
