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