#pragma GCC optimize("O3")
#include <iostream>
#define _ ios::sync_with_stdio(false),cin.tie(nullptr);
using namespace std;
char* s[2] = {"No\n","Yes\n"};
int main() { _
string str;
while(cin >> str && !str.empty()) cout << s[equal(str.begin(),str.begin()+str.length()/2,str.rbegin())];
}
I3ByYWdtYSBHQ0Mgb3B0aW1pemUoIk8zIikKI2luY2x1ZGUgPGlvc3RyZWFtPgojZGVmaW5lIF8gaW9zOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpLGNpbi50aWUobnVsbHB0cik7Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpjaGFyKiBzWzJdID0geyJOb1xuIiwiWWVzXG4ifTsKaW50IG1haW4oKSB7IF8KCXN0cmluZyBzdHI7Cgl3aGlsZShjaW4gPj4gc3RyICYmICFzdHIuZW1wdHkoKSkgY291dCA8PCBzW2VxdWFsKHN0ci5iZWdpbigpLHN0ci5iZWdpbigpK3N0ci5sZW5ndGgoKS8yLHN0ci5yYmVnaW4oKSldOwp9