S = input() i = 0 for s in S: j = "kadomatsu".find(s, i) if j == -1: print("No") break i = j + 1 else: print("Yes")