import fnmatch

S=[]

S.append(eval(input()))

if S == fnmatch.filter(S, "*keyence") or S == fnmatch.filter(S, "k*eyence") or S == fnmatch.filter(S, "ke*yence") or S == fnmatch.filter(S, "key*ence") or S == fnmatch.filter(S, "keye*nce") or S == fnmatch.filter(S, "keyen*ce") or S == fnmatch.filter(S, "keyenc*e") or S == fnmatch.filter(S, "keyence*"):

  print("YES")

else:

  print("NO")
import fnmatch

S=[]

S.append(eval(input()))

if S == fnmatch.filter(S, "k*eyence") or S == fnmatch.filter(S, "ke*yence") or S == fnmatch.filter(S, "key*ence") or S == fnmatch.filter(S, "keye*nce") or S == fnmatch.filter(S, "keyen*ce") or S == fnmatch.filter(S, "keyenc*e") :

  print("YES")

else:

  print("NO")
import fnmatch

S = []
S.append(eval(input()))
if (
    S == fnmatch.filter(S, "*keyence")
    or S == fnmatch.filter(S, "k*eyence")
    or S == fnmatch.filter(S, "ke*yence")
    or S == fnmatch.filter(S, "key*ence")
    or S == fnmatch.filter(S, "keye*nce")
    or S == fnmatch.filter(S, "keyen*ce")
    or S == fnmatch.filter(S, "keyenc*e")
    or S == fnmatch.filter(S, "keyence*")
):
    print("YES")
else:
    print("NO")

import fnmatch

S = []
S.append(eval(input()))
if (
    S == fnmatch.filter(S, "k*eyence")
    or S == fnmatch.filter(S, "ke*yence")
    or S == fnmatch.filter(S, "key*ence")
    or S == fnmatch.filter(S, "keye*nce")
    or S == fnmatch.filter(S, "keyen*ce")
    or S == fnmatch.filter(S, "keyenc*e")
):
    print("YES")
else:
    print("NO")

-    S == fnmatch.filter(S, "*keyence") -    or S == fnmatch.filter(S, "k*eyence") +    S == fnmatch.filter(S, "k*eyence") -    or S == fnmatch.filter(S, "keyence*")