File Edit Options Buffers Tools YASnippet Complete In/Out Signals Help                                                                     
l = raw_input()
flag = False
if len(l) == 7:
    if l == "keyence":
        flag = True
elif len(l) == 8:
    for i in range(8):
        tmp = l[:i] + l[i+1:]
        if tmp == "keyence":
            flag = True
else:
    flag = False
if flag == True:
    print "YES"
else:
    print "NO"
