from collections import Counter
a = str(input())
nums = {"k":1,"e":3,"y":1,"n":1,"c":1}
temp = Counter(a)
good = True
for letter in nums.keys():
    if temp[letter] < nums[letter]:
        good = False
if good:
    print("YES")
else:
    print("NO")