#include <bits/stdc++.h>
using namespace std;
int main() {
  int b = 0, c = 0;
  string a;
  cin >> a;
  for (int i = 0; i < a.size(); i++) {
    if (a[i] != a[a.size() - 1 - i]) b++;
  }
  if (b == 0) {
    for (int i = 0; i < a.size(); i++) {
      if (a[i] == 'A')
        c++;
      else if (a[i] == 'H')
        c++;
      else if (a[i] == 'I')
        c++;
      else if (a[i] == 'M')
        c++;
      else if (a[i] == 'O')
        c++;
      else if (a[i] == 'T')
        c++;
      else if (a[i] == 'U')
        c++;
      else if (a[i] == 'V')
        c++;
      else if (a[i] == 'W')
        c++;
      else if (a[i] == 'X')
        c++;
      else if (a[i] == 'Y')
        c++;
    }
    if (c == a.size())
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
