S = input()
str1 = "keyence"
count = 0
for i in range(len(S)):
    for j in range(i,len(S)):
        new_str = S[:i] + S[j:]
        if new_str == str1:
            print("YES")
            count = 1
if(count != 1):
    print("NO")
