#include<cstdio>
#include<iostream>
#include<cmath>
using namespace std;
int n[114514];
int hw(int a){
int b,a1;
a1=a;
while(a1){
b+=a1%10;
a1/=10;
b*=10;
}
b/=10;
if(b==a)return 1;
else return 0;
}
int main(){
int a;
cin>>a;
if(hw(a)==1)cout<<"Yes";
else cout<<"No";
return 0;
}