#include<stdio.h>
int jz(int n,int j)
{
int N,i,sum=0,k=1;
for(N=n;N>0;N/=j)
{
i=N%j;
sum=sum+i*k;k*=10;
}
return sum;
}
int hws(int n,int j)
{
int sum=0,N,i;
for(N=n;N>0;N/=10)
{
i=N%10;
sum=sum*10+i;
}
if(sum==n)
{
return 1;
}
else
{
return 0;
}
}
int main()
{
int n,j,i,z=1,N;
while(scanf("%d",&n)!=EOF)
{
for(j=10;j>=2;j--)
{
N=jz(n,j);
z=hws(N,j);
if(z==1)
{
printf("Yes\n");break;
}
}
if(z==0)
printf("No\n");
}
return 0;
}judger/run/57bdaa6969bf4187a97d7a0634fb5027/main.c: In function 'main':
/judger/run/57bdaa6969bf4187a97d7a0634fb5027/main.c:72:11: error: stray '\357' in program
return 0;
^
/judger/run/57bdaa6969bf4187a97d7a0634fb5027/main.c:72:12: error: stray '\274' in program
return 0;
^
/judger/run/57bdaa6969bf4187a97d7a0634fb5027/main.c:72:13: error: stray '\233' in program
return 0;
^
compilation terminated due to -fmax-errors=3.