import re

s=eval(input())

if re.match("^keyence.*",s) or re.match(".*keyence$",s) or re.match("^k.*eyence$",s)  or re.match("^ke.*yence$",s) or re.match("^key.*ence$",s) or re.match("^keye.*nce$",s) or re.match("^keyen.*ce$",s)or re.match("^keyenc.*e$",s) or re.match("^keyence$",s) :

    print("YES")

else:print("NO")
import re

s=eval(input())

if re.match(".*keyence$",s) or re.match("^k.*eyence$",s)  or re.match("^ke.*yence$",s) or re.match("^key.*ence$",s) or re.match("^keye.*nce$",s) or re.match("^keyen.*ce$",s)or re.match("^keyenc.*e$",s):

    print("YES")

else:print("NO")
import re

s = eval(input())
if (
    re.match("^keyence.*", s)
    or re.match(".*keyence$", s)
    or re.match("^k.*eyence$", s)
    or re.match("^ke.*yence$", s)
    or re.match("^key.*ence$", s)
    or re.match("^keye.*nce$", s)
    or re.match("^keyen.*ce$", s)
    or re.match("^keyenc.*e$", s)
    or re.match("^keyence$", s)
):
    print("YES")
else:
    print("NO")

import re

s = eval(input())
if (
    re.match(".*keyence$", s)
    or re.match("^k.*eyence$", s)
    or re.match("^ke.*yence$", s)
    or re.match("^key.*ence$", s)
    or re.match("^keye.*nce$", s)
    or re.match("^keyen.*ce$", s)
    or re.match("^keyenc.*e$", s)
):
    print("YES")
else:
    print("NO")

-    re.match("^keyence.*", s) -    or re.match(".*keyence$", s) +    re.match(".*keyence$", s) -    or re.match("^keyence$", s)