#include <bits/stdc++.h>
using namespace std;
long long t;
long long u;
long long v[55];
int main() {
  for (int i = 1; i < 54; i++) v[i] = 1LL << (i - 1);
  cin >> t >> u;
  long long sadek = u;
  if (u % 2 == 1LL) {
    cout << 1 << endl;
    return 0;
  }
  while (true) {
    for (int i = 1; i < 52; i++)
      if (sadek == v[i]) {
        cout << i << endl;
        return 0;
      }
    int temp = (int)log2((double)sadek);
    sadek = sadek - (1LL << temp);
  }
}
