#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const int MOD = (int)1e9 + 7;
const long double pi = atan2(0, -1);
const int N = 1000000;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.precision(20);
  string s;
  cin >> s;
  string s1 = s;
  reverse(s1.begin(), s1.end());
  if (s != s1) {
    cout << "NO" << endl;
    return 0;
  }
  for (char i : s)
    if (!(i == 'A' || i == 'H' || i == 'I' || i == 'M' || i == 'O' ||
          i == 'T' || i == 'U' || i == 'V' || i == 'W' || i == 'X' ||
          i == 'Y')) {
      cout << "NO" << endl;
      return 0;
    }
  cout << "YES" << endl;
  return 0;
}
