S = input().strip()
flag = 0
for i in range(len(S)-1):
    for j in range(i+1,len(S)):
        x = S[:i]+S[j:]
        if x=="keyence":
            flag = 1
            break
    if flag==1:break
if flag==1:
    print("YES")
else:
    print("NO")