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