#include <bits/stdc++.h>
using namespace std;
inline int get_num() {
  int res = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    res = (res << 3) + (res << 1) + (ch ^ 0x30);
    ch = getchar();
  }
  return res * f;
}
long long n, k;
int a[60];
void read() { scanf("%I64d %I64d", &n, &k); }
void work() {
  int cnt = 0;
  while (k) {
    a[cnt++] = k % 2;
    k /= 2;
  }
  int ans = 0;
  for (int i = 0; i < cnt; i++) {
    ans++;
    if (a[i] == 1) {
      break;
    }
  }
  cout << ans << endl;
}
int main() {
  read();
  work();
  return (0);
}
