#!/mnt/c/Users/moiki/bash/env/bin/python
s = input()

i = 0
text="keyence"
for c in s:
    if i == 7:
        print("YES")
        exit(0)
    else:
        if c == text[i]:
            i += 1



if i == 7:
    print("YES")
else:
    print("NO")

