import re

S = input()

patterns = (".*keyence", "k.*eyence", "ke.*yence", "key.*ence", "keye.*nce", "keyen.*ce", "keyenc.*e", "keyence.*")
if any(re.match(pattern, S) for pattern in patterns):
    print("YES")
else:
    print("NO")
