
S = list(input())

str = ["k","e","y","e","n","c","e"]
false = 0
split = 0

for i in S :
    if i==str[0]:
        str.pop(0)
        if false > 0 :
            split += 1
            false = 0
    else:
        false += 1

if len(str)==0:
    if split <=1 :
        print("YES") 
    else :
        print("NO")
else :
    print("NO")