#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long a;
  cin >> a;
  long long n;
  cin >> n;
  int64_t m;
  for (long long i = 0; i < 64; ++i) {
    m = 1ll << i;
    if (n & m) {
      cout << i + 1;
      break;
    }
  }
}
int main() { solve(); }
