#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s, s1, s2;
  cin >> s;
  s2 = s;
  string s3 = s;
  reverse(s2.begin(), s2.end());
  s1 = s + s2;
  int t = 1;
  for (int i = 0; i <= s.length(); i++) {
    if (s[i] == 'A' or s[i] == 'H' or s[i] == 'I' or s[i] == 'M' or
        s[i] == 'O' or s[i] == 'T' or s[i] == 'U' or s[i] == 'V' or
        s[i] == 'W' or s[i] == 'X' or s[i] == 'Y') {
      s3.erase(s3.begin());
    }
  }
  if (s3.length() > 0) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < s.length(); i++) {
    if (s1[i] != s1[i + s.length()]) t = 0;
  }
  if (t == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
