t = "kadomatsu" s = input() i = 0 for c in s: i = t.find(c,i)+1 if i==0: print("No") exit() print("Yes")