A = set() for i in range(2**9): S = list("kadomatsu") for k in range(8,-1,-1): if (i>>k)&1: S.pop(k) A.add("".join(S)) s = input().strip() if s in A: print("Yes") else: print("No")