#coding:utf-8

STRNUM = 8

def concat(str_list):
    s = ""
    for i in str_list:
        s += i
    return s

in_s = input()
l = len(in_s)
is_key = False
if(l >= 7)|(l <= 100):
    keyence = list("keyence")
    if "keyence" in in_s:
        splt_res = in_s.split("keyence")
        if(splt_res[0]=="")|(splt_res[1]==""):
            is_key = True
    else:
        for i in range(STRNUM-1):
            str1 = concat(keyence[0:i+1])
            str2 = concat(keyence[i+1:])
            # str1 で分割
            if str1 in in_s:
                splt_res = in_s.split(str1)
                if splt_res[0] == "":
                    if str2 in splt_res[1]:
                        splt_res2 = splt_res[1].split(str2)
                        if(splt_res2[0]=="")|(splt_res2[1]==""):
                            is_key = True

if is_key == True:
    print("YES")
else:
    print("NO")
