#include <bits/stdc++.h>
using namespace std;
string s;
int n;
bool a[27];
int main() {
  a[0] = 1;
  a['H' - 'A'] = 1;
  a['I' - 'A'] = 1;
  a['M' - 'A'] = 1;
  a['O' - 'A'] = 1;
  a['T' - 'A'] = 1;
  a['U' - 'A'] = 1;
  a['V' - 'A'] = 1;
  a['W' - 'A'] = 1;
  a['X' - 'A'] = 1;
  a['Y' - 'A'] = 1;
  cin >> s;
  n = s.length();
  bool q = 0;
  for (int i = 0; i < n / 2; i++)
    if (s[i] != s[n - i - 1] || (!a[s[i] - 'A'])) q = 1;
  if (!a[s[n / 2] - 'A']) q = 1;
  if (!q)
    puts("YES");
  else
    puts("NO");
  return 0;
}
