#include <stdio.h>
int loop(int i)
{
int sum=0;
while(i!=0)
{
sum=sum*10;
sum=sum+i%10;
i=i/10;
}
return sum;
}
int main()
{
int a,b,i;
scanf("%d %d",&a,&b);
for(i=a;i<=b;i++)
{
if(i==loop(i))
printf("%d\n",i);
}
return 0;
}
#include <stdio.h>
int loop(int i)
{
int sum=0;
while(i!=0)
{
sum=sum*10;
sum=sum+i%10;
i=i/10;
}
return sum;
}
int main()
{
int a,b,i;
scanf("%d %d",&a,&b);
for(i=a;i<=b;i++)
{
if(i==loop(i))
printf("%d\n",i);
}
return 0;
}