S=input() K="kadomatsu" ind=0 for s in S: if ind==9: print("No") exit() while s!=K[ind]: ind+=1 if ind==9: print("No") exit() ind+=1 print("Yes")