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