import std.algorithm;
import std.array;
import std.bigint;
import std.conv;
import std.exception;
import std.math;
import std.numeric;
import std.random;
import std.range;
import std.stdio;
import std.string;
import std.typecons;
import core.bitop;

immutable int NA = -1;
immutable string A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
immutable string B = "AxxxxxxHIxxxMxOxxxxTUVWXYx";

void main ()
{
	char [dchar] d;
	foreach (i; 0..A.length)
	{
		d[A[i]] = B[i];
	}

	char [] s;
	while ((s = to !(char []) (readln ().strip ())) != "")
	{
		char [] b = s.dup;
		reverse (b);
		char [] c;
		foreach (x; b)
		{
			c ~= d[x];
		}
		writeln (s == c ? "YES" : "NO");
	}
}
