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:
fuck = [
    'h','he','li','be','b','lv','nh','fl','mc','ts','og',
    'c','n','o','f','ne',
    'na','mg','al','si','p',
    's','cl','ar','k','ca',
    'sc','ti','v','cr','mn',
    'fe','co','ni','cu','zn',
    'ga','ge','as','se','br',
    'kr','rb','sr','y','zr',
    'nb','mo','tc','ru','rh',
    'pd','ag','cd','in','sn',
    'sb','te','i','xe','cs',
    'ba','la','ce','pr','nd','pm','sm','eu','gd','tb','dy','ho','er','tm','yb','lu',
    'hf','ta','w','re','os',
    'ir','pt','au','hg','tl',
    'pb','bi','po','at','rn',
    'fr','ra','ac','rf',
    'th','pa','u','np','pu','am','cm','bk','cf','es','fm','md','no','lr','db','sg','bh','hs','mt','ds','rg','cn']

def dfs(pos):
    global s,a
    if pos == len(s):
        a = 1
        return
    for i in fuck:
        if pos+len(i)<=len(s) and i == s[pos:pos+len(i)]:
            dfs(pos+len(i))
    return

s = input().strip().lower()
a = 0
dfs(0)
if a == 0:
    print("NO")
else:
    print("YES")