#include <bits/stdc++.h>
using namespace std;
void inputOutput() {}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  inputOutput();
  string yelo = "AHIMOTUVWXY";
  string s;
  cin >> s;
  long long int n = s.length();
  for (long long int i = 0; i < n; i++) {
    if (yelo.find(s[i]) == string::npos) return cout << "NO", 0;
  }
  for (long long int i = 0; i < n / 2; i++) {
    if (s[i] != s[n - i - 1]) return cout << "NO", 0;
  }
  cout << "YES";
  cerr << "time elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
  return 0;
}
