a,b;main(c){scanf("%d%d",&a,&b);for(a++;--a>b;c*=2);printf("%d",a