Coder-Strike 2014 - Finals (online edition, Div. 1)
A
Start Up
Codeforces
1000
原题
←B →
翻译中…

Recently, a start up by two students of a state university of city F gained incredible popularity. Now it's time to start a new company. But what do we call it?

翻译中…

The market analysts came up with a very smart plan: the name of the company should be identical to its reflection in a mirror! In other words, if we write out the name of the company on a piece of paper in a line (horizontally, from left to right) with large English letters, then put this piece of paper in front of the mirror, then the reflection of the name in the mirror should perfectly match the line written on the piece of paper.

翻译中…

There are many suggestions for the company name, so coming up to the mirror with a piece of paper for each name wouldn't be sensible. The founders of the company decided to automatize this process. They asked you to write a program that can, given a word, determine whether the word is a 'mirror' word or not.

翻译中…

Input

翻译中…

The first line contains a non-empty name that needs to be checked. The name contains at most $10^{5}$ large English letters. The name will be written with the next sans serif font:

翻译中…

image

翻译中…

Output

翻译中…

Print 'YES' (without the quotes), if the given name matches its mirror reflection. Otherwise, print 'NO' (without the quotes).

翻译中…

样例

Input #1
AHA
Output #1
YES
InputCopy OutputCopy
Input #2
Z
Output #2
NO
InputCopy OutputCopy
Input #3
XO
Output #3
NO
InputCopy OutputCopy
题目信息
题号
420A
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。