S = str(input()) KADOMATSU = "kadomatsu" num = 0 for s in S: i = KADOMATSU.find(s,num) if i >= 0: num = i+1 else: print("No") exit() print("Yes")