#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int i;
  int flag = 0;
  cin >> s;
  int k;
  for (i = 0; i < s.length(); i++) {
    flag = 0;
    switch (s[i]) {
      case 'A':
      case 'H':
      case 'I':
      case 'M':
      case 'O':
      case 'T':
      case 'U':
      case 'V':
      case 'W':
      case 'X':
      case 'Y':
        flag = 1;
        break;
    }
    if (flag == 0) break;
  }
  int j;
  i = 0;
  k = 0;
  j = s.length() - 1;
  if (flag == 0)
    cout << "NO\n";
  else {
    while (i <= j) {
      if (s[i] == s[j]) {
        i++;
        j--;
      } else {
        k = 1;
        break;
      }
    }
    if (k == 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
