s=input()[:-1] for x in range(97,123): if chr(x) in s: s=s.replace(chr(x),'114514') try: eval(s) except: print('NO') else: print('YES')