s = input().strip() target = "kadomatsu" i = j = 0 n, m = len(s), len(target) while i < n and j < m: if s[i] == target[j]: i += 1 j += 1 print("Yes" if i == n else "No")