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