import sys
s = input()
l =[ ['keyence'],['k','eyence'],['ke','yence'],['key','ence'],['keye','nce'],['keyen','ce'],['keyenc','e']]

for i in l:
    tmps = s
    ok = True
    for j in i:
        f = tmps.find(j)
        if f == -1:
            ok = False
        tmps = tmps[f:]
    if ok:
        print('YES')
        sys.exit(0)
print('NO')