#include <bits/stdc++.h>
using ll = long long;
const ll M = 1000000007;
const ll infi = 1000000000000000;
const ll md = 998244353;
using namespace std;
using vl = vector<ll>;
using pll = pair<ll, ll>;
void solve() {
  ll n, k;
  cin >> n >> k;
  ll c = 1;
  while (!(k & 1)) {
    k /= 2;
    c++;
  }
  cout << c << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}
