Problem: 

Input

The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive.

Output

Output "YES" or "NO".

Examples

Input


GENIUS


Output


YES


Input


DOCTOR


Output


NO


Input


IRENE


Output


YES


Input


MARY


Output


NO


Input


SMARTPHONE


Output


NO


Input


REVOLVER


Output


YES


Input


HOLMES


Output


NO


Input


WATSON


Output


YES

Solution (in PYTHON3):

Solution:
def main():
    a = [ord(x) - ord('A') for x in input()]
    if len(a) < 3:
        print('YES')
        return
    fa, fb = a[0], a[1]
    for i in a[2:]:
        if i != (fa + fb) % 26:
            print('NO')
            return
        fa, fb = fb, (fa + fb) % 26
    print('YES')


main()