S = input()
I = 0
for c in S:
  if 'kadomatsu'.find(c, I) == -1:
    print('No')
    break
  I = 'kadomatsu'.find(c, I) + 1
else:
  print('Yes')