void main(){
  import std.stdio, std.string, std.conv, std.algorithm;
  
  long x, y; rd(x, y);
  
  long count(long st, long ed){
    if(st>ed) return 0;
    long ret=1;
    while(st*2<=ed) st*=2, ret++;
    return ret;
  }

  writeln(max(count(x, y), count(x+1, y)));
}

void rd(T...)(ref T x){
  import std.stdio, std.string, std.conv;
  auto l=readln.split;
  assert(l.length==x.length);
  foreach(i, ref e; x){
    e=l[i].to!(typeof(e));
  }
}
void wr(T...)(T x){
  import std.stdio;
  foreach(e; x) write(e, " ");
  writeln();
}
