
import re

def solve(s):
    if s == 'keyence':
        return True
    if re.match(r'^([a-z]+)keyence$', s):
        return True
    if re.match(r'^k([a-z]+)eyence$', s):
        return True
    if re.match(r'^ke([a-z]+)yence$', s):
        return True
    if re.match(r'^key([a-z]+)ence$', s):
        return True
    if re.match(r'^keye([a-z]+)nce$', s):
        return True
    if re.match(r'^keyen([a-z]+)ce$', s):
        return True
    if re.match(r'^keyenc([a-z]+)e$', s):
        return True
    if re.match(r'^keyence([a-z]+)$', s):
        return True
    return False

s = raw_input().rstrip()

if solve(s):
    print 'YES'
else:
    print 'NO'
