def f(S): X="kadomatsu" if X==S: return True if len(X)>=9: return False for i in range(len(X)): if S==X[:i]+X[i+1:]: return True return False S=input() print("Yes" if f(S) else "No")