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