#include <bits/stdc++.h>
using namespace std;
int main() {
  map<char, bool> mp;
  mp['A'] = true;
  mp['H'] = true;
  mp['I'] = true;
  mp['M'] = true;
  mp['O'] = true;
  mp['T'] = true;
  mp['U'] = true;
  mp['V'] = true;
  mp['W'] = true;
  mp['X'] = true;
  mp['Y'] = true;
  string s;
  cin >> s;
  if (s.size() == 1) {
    if (mp[s[0]] == true)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else {
    int sz = s.size();
    bool bl = true;
    for (int i = 0; i < sz; i++) {
      if (mp[s[i]] == false) {
        bl = false;
        break;
      }
    }
    if (bl) {
      string s1, s2;
      if (sz % 2 != 0) {
        s.erase(sz / 2, 1);
      }
      sz = s.size();
      s1 = s.substr(0, sz / 2);
      s2 = s.substr(sz / 2, sz);
      reverse(s2.begin(), s2.end());
      if (s1 == s2)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    } else
      cout << "NO" << endl;
  }
}
