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