def f(S): X="kadomatsu" if X==S: return True if S in {"adomatsu","kdomatsu","kaomatsu","kadmatsu","kadoatsu","kadomtsu","kadomasu","kadomatu","kadomats"}: return True else: return False S=input() assert S!="kadomatsu" print("Yes" if f(S) else "No")