import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int g = n % 10;
int s = n / 10 % 10;
int b = n / 100 % 10;
int q = n / 1000;
if(g == q && s == b){
System.out.println("yes");
}else{
System.out.println("no");
}
sc.close();
}
}
/**************************************************************
Problem: 1647
User: admin
Language: Java
Result: Accepted
Time:716 ms
Memory:39844 kb
****************************************************************/