#include<iostream> using namespace std; int main(){ int c,h=100; cin>>c>>h; while(h>=0.5){ c++; h=h/2; } cout<<c; return 0; }