from sys import stdin
import re
flug = 0
l = stdin.readline()
for i in range(7):
    pattern = list("keyence")
    pattern.insert(i, "[a-z]*")
    r = re.compile("".join(pattern))
    if (r.match(l) != None) :
        if flug == 0:
            print("YES")
        flug = 1

if(flug == 0):
    print("NO")