#include <bits/stdc++.h>
using namespace std;
long long int ma = -1, mi = 1000000000000000;
inline long long int gcd(long long int a, long long int b) {
  return b ? gcd(b, a % b) : a;
}
inline long long int lcm(long long int a, long long int b, long long int MOD) {
  return a / gcd(a, b) * b % MOD;
}
long long int power(long long int x, unsigned int y) {
  if (y == 0)
    return 1;
  else if (y % 2 == 0)
    return power(x, y / 2) * power(x, y / 2);
  else
    return x * power(x, y / 2) * power(x, y / 2);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, i, j = 1, k = 0, b;
  cin >> n >> k;
  if (k % 2 == 1) {
    cout << 1 << endl;
    return 0;
  }
  while (true) {
    if (k % 2 == 1) break;
    j++;
    k /= 2;
  }
  cout << j << endl;
}
