s = input()
S = 'kadomatsu'
idx = 0
for c in s:
    while idx < 9 and S[idx] != c:
        idx += 1
    idx += 1
if idx > 9:
    print('No')
else:
    print('Yes')