import re
s = input() 
patterns = [".*keyence", 
            "k.*eyence",
            "ke.*yence",
            "key.*ence",
            "keye.*nce",
            "keyen.*ce",
            "keyenc.*e",
            "keyence.*"]

found = False
for p in patterns:   
    c = re.compile(p)
    result = c.match(s)
    if result!=None:
        found = True # 見つかった

print("YES" if found else "NO")