S = input() T = "kadomatsu" import sys right = 0 for left in range(len(S)): while right < len(T) and T[right] != S[left]: right += 1 if right == len(T): print('No') exit() else: right += 1 print('Yes')