#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  while (cin >> s) {
    int len = s.size();
    int k = 1;
    int m = 1;
    for (int i = 0; i < len / 2; i++) {
      if (s[i] == s[len - i - 1])
        continue;
      else {
        k = 0;
        break;
      }
    }
    if (k == 0)
      cout << "NO" << endl;
    else {
      for (int i = 0; i < len; i++) {
        if (s[i] == 'A' || s[i] == 'H' || s[i] == 'I' || s[i] == 'M' ||
            s[i] == 'O' || s[i] == 'T' || s[i] == 'U' || s[i] == 'V' ||
            s[i] == 'X' || s[i] == 'Y' || s[i] == 'W')
          continue;
        else {
          m = 0;
          break;
        }
      }
      if (m == 0)
        cout << "NO" << endl;
      else
        cout << "YES" << endl;
    }
  }
  return 0;
}
