import re
def checkkeyence(s):
    patternlist = [".*keyence", "k.*eyence","ke.*yence","key.*ence","keye.*nce","keyen.*ce","keyenc.*e","keyence.*"]
    for p in patternlist:
        if re.match(p,s) != None:
            return 'YES'
    return 'NO'
        
s=input();print(checkkeyence(s))