import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true)
{
String N = br.readLine();
if ( Integer.parseInt(N) == 0)
{
break;
}
char[] spell = new char[N.length()+1];
for (int i = 0 ; i < N.length(); i++)
{
spell[i] = N.charAt(i);
}
boolean real = true;
for (int i = 0 ; i < N.length(); i++)
{
if (spell[i] == spell[N.length()-1-i]){
real = true;
}
else {
real = false;
break;
}
}
if (real){
System.out.println("yes");
}
else{
System.out.println("no");
}
}
}
}
실버 문제풀다가 브론즈 문제를 푸니 천사같다..