s = list(input())
x = list("keyence")
k = 0
count_miss = 0
count_miss1 = 0
for i in range(len(s)):
    if s[i] == x[k]:
        k+=1
        if count_miss == 1:
            count_miss1 = 1
    else:
        count_miss = 1
        if count_miss1 == 1:
            print("NO")
            exit()
    if k==len(x):
        if i != len(s)-1 and count_miss1 == 1:
            print("NO")
            exit()
        break
if k==len(x):
    print("YES")
else:
    print("NO")