import re

S=input()

if re.match("keyence",S) or re.match("[a-x\s]+keyence",S) or re.match("k[a-x\s]+eyence",S) or re.match("ke[a-x\s]+yence",S) or re.match("key[a-x\s]+ence",S) or re.match("keye[a-x\s]+nce",S) or re.match("keyen[a-x\s]+ce",S) or re.match("keyenc[a-x\s]+e",S)  or re.match("keyence[a-x\s]+",S):
    print("YES")
else:
    print("NO")

