import re
x = input()

answer = "NO"

if len(re.findall(".*keyence", x)) > 0 :
    answer = "YES"
if len(re.findall("k.*eyence", x)) > 0 :
    answer = "YES"
if len(re.findall("ke.*yence", x)) > 0 :
    answer = "YES"
if len(re.findall("key.*ence", x)) > 0 :
    answer = "YES"
if len(re.findall("keye.*nce", x)) > 0 :
    answer = "YES"
if len(re.findall("keyen.*ce", x)) > 0 :
    answer = "YES"
if len(re.findall("keyenc.*e", x)) > 0 :
    answer = "YES"
if len(re.findall("keyence.*", x)) > 0 :
    answer = "YES"
print(answer)