import re

S=input()

if re.match("keyence",S) or re.match("^([a-x]+)keyenc$e",S) or re.match("^k([a-x]+)eyenc$e",S) or re.match("^ke([a-x]+)yenc$e",S) or re.match("^key([a-x]+)enc$e",S) or re.match("^keye([a-x\s]+)nc$e",S) or re.match("^keyen([a-x]+)c$e",S) or re.match("^keyenc([a-x]+)$e",S)  or re.match("^keyence$([a-x]+)",S):
    print("YES")
else:
    print("NO")