S = input()

result = "NO"

if "keyence" in S:
    result = "YES"
if "k" in S:
    k_index = S.index("k")
    if "eyence" in S[k_index + 1:]:
        result = "YES"
if "ke" in S:
    ke_index = S.index("ke")
    if "yence" in S[ke_index + 1:]:
        result = "YES"
if "key" in S:
    key_index = S.index("key")
    if "ence" in S[key_index + 1:]:
        result =  "YES"
if "keye" in S:
    keye_index = S.index("keye")
    if "nce" in S[keye_index + 1:]:
        result = "YES"
if "keyen" in S:
    keyen_index = S.index("keyen")
    if "ce" in S[keyen_index + 1:]:
        result = "YES"
if "keyenc" in S:
    keyenc_index = S.index("keyenc")
    if "e" in S[keyenc_index + 1:]:
        result = "YES"

print(result)