centence=input()
str1="keyence"
a=0
if "keyence" in centence:
    print("YES")
else:
    for i in range(1,len(str1)):
        if (centence.startswith(str1[:i])) and (centence.endswith(str1[i:])):
            a+=1
    if a==1:
        print("YES")
    else:
        print("NO")