#include <bits/stdc++.h>
using namespace std;
vector<long long> getBits(long long n) {
  vector<long long> bits;
  while (n > 0) {
    bits.push_back(n % 2);
    n /= 2;
  }
  return bits;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k;
  cin >> n >> k;
  vector<long long> bits = getBits(k);
  for (long long i = 0; i < n; i++) {
    if (bits[i] == 1) {
      cout << i + 1 << endl;
      return 0;
    }
  }
  return 0;
}
