import re
s = input()
pattern={
    '.*keyence'
    ,'k.*eyence'
    ,'ke.*yence'
    ,'key.*ence'
    ,'keye.*nce'
    ,'keyen.*ce'
    ,'keyenc.*e'
    ,'keyence.*'
    ,'keyence'
    }

for p in pattern:
    if re.match(p, s):
        print('YES')
        break
else:
    print('NO')