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