#include<iostream>
#include<vector>
using namespace std;
int main()
{
    vector<int> vec;
    int n;
    cout<<"enter a three-digit positive integer N:"<<endl;
    int n1=n;
    while(n1) {
        vec.push_back(n1 % 10);
        n1 = n1 / 10;
    }
    if(vec.size()!=3)
        return 1;
    int n2=vec.at(0)*100+vec.at(1)*10+vec.at(2);
    if(n==n2)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}