#include <bits/stdc++.h>   using namespace std;   const long double Eps = 1e-8;   char what[27] =  A??????HI???M?O????TUVWXY? ;   char str[100005];   void input() { scanf( %s , str); }   bool good() {     int N = strlen(str);     for (int i = 0; i < N; i++) {       if (str[i] != what[str[N - i - 1] -  A ]) return false;     }     return true;   }   int main() {     input();     printf(good() ?  YES n  :  NO n );   }   