import sys;input = lambda: sys.stdin.readline().rstrip() #import heapq #from collections import deque #import numpy as np #from collections import Counter as cnt #from collections import defaultdict as ddc #from math import factorial as fct #from math import gcd #from bisect import bisect_left as bsl #from bisect import bisect_right as bsr #from itertools import accumulate as acc #from itertools import combinations as cmb #from itertools import permutations as pmt #from itertools import product as prd #from functools import reduce as red #import sys #sys.setrecursionlimit(10**9) #再帰を多く使う(デフォルトは1000) k ='kadomatsu' Ans = set() for i in range(2**9): ans = '' for j in range(9): if i>>j&1: ans += k[j] Ans.add(ans) s = input() b = s not in Ans#bが0ならイエス、1ならノー print('YNeos'[b::2])