import re
keyence = input()
if bool(re.search(".*keyence",keyence)) or bool(re.search("k.*eyence",keyence)) or bool(re.search("ke.*yence",keyence)) or bool(re.search("key.*ence",keyence)) or bool(re.search("keye.*nce",keyence)) or bool(re.search("keyen.*ce",keyence)) or bool(re.search("keyenc.*e",keyence)) or bool(re.search("keyence.*",keyence)):
    print("YES")
else:
    print("NO")