s = input() if not s.isalnum('_') or s[0].isdigit(): print("no") elif len(s) > 20: print("no") else: print("yes")