T = "kadomatsuZ" S = input() N = len(S) now = 0 for s in S: while now < 10 and T[now] != s: now += 1 if now == 10: print("No") exit() now += 1 print("Yes")