#include<iostream>
#include<string>
using namespace std;
int main()
{
string a;
while( cin>>a)
if (a.at(0)==a.at((a.length()-1)))
cout<<"yes";
else
cout<<"no";
}