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