// editor1
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
    string words;
    int numbers;
    getline(cin,words);
    cin>>number;
    reverse(words.begin(),words.end())
    if(words==words)
    {
        cout<<"YES";
    }
    else
    {
        cout<<"NO";
    }
    
}