Rotating letters
시간 제한: 1000ms메모리 제한: 128MB출처: CCC 2013 JuniorBOJ 6750
문제
An artist wants to construct a sign whose letters will rotate freely in the breeze. In order to do this, she must only use letters that are not changed by rotation of 180 degrees: I, O, S, H, Z, X, and N.
Write a program that reads a word and determines whether the word can be used on the sign.
입력
The input will consist of one word, all in uppercase letters, with no spaces. The maximum length of the word will be 30 letters, and the word will have at least one letter in it.
출력
Output YES if the input word can be used on the sign; otherwise, output NO
예제
예제 1
입력
SHINS
출력
YES
코드를 제출하려면 로그인하세요.