#include #include #include int main(){ int a,b,i,j,*r; int result = 0; scanf("%d %d",&a,&b); r=(int*)malloc(sizeof(int)*(b-a+1)); for(i=a;i<=b;i++){ r[i-a]=0; for(j=2;j=j){ j=r[i-a]; result = i; } } printf("%d\n",result); return 0; }