import pypyjit pypyjit.set_param("max_unroll_recursion=-1") from collections import * from functools import * from itertools import * from heapq import * import sys, math # sys.setrecursionlimit(10**4) input = sys.stdin.readline S = list(input())[:-1] X = list('kadomatsu') M = len(S) N = len(X) now = 0 for x in X: if x==S[now]: now += 1 if now==M: print('Yes') exit() print('No') # print(now)