#include <bits/stdc++.h>
using namespace std;
string s;
char ok[100] = {'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y'};
int main() {
  while (cin >> s) {
    if (s.length() == 1) {
      int flag = 0;
      for (int i = 0; i <= 10; i++) {
        if (s[0] == ok[i]) {
          puts("YES");
          flag = 1;
          break;
        }
      }
      if (!flag) puts("NO");
      continue;
    } else {
      int flag = 1, half = s.length() / 2, flag1 = 0;
      int len = s.length();
      for (int i = 0; i < half; i++) {
        if (s[i] != s[len - 1 - i]) {
          flag = 0;
          break;
        } else {
          int x = 0;
          for (int j = 0; j <= 10; j++) {
            x += s[i] == ok[j];
          }
          if (x == 0) {
            flag = 0;
            break;
          }
        }
      }
      if (len % 2 == 1) {
        for (int i = 0; i <= 10; i++) {
          if (s[half] == ok[i]) {
            flag1 = 1;
            break;
          }
        }
      } else
        flag1 = 1;
      printf("%s\n", flag == 1 && flag1 == 1 ? "YES" : "NO");
    }
  }
  return 0;
}
