# encoding: utf-8
S = input()
target = 'keyence'


if S.find(target) > -1: print('YES')
else:
    ans = 'NO'
    for i in range(1, len(S)):
        tarl = target[:i]
        tarr = target[i:]
        posl = S.find(tarl)
        posr = S.find(tarr)
        if posl < 0 or posr < 0: continue # not found
        elif posl + i > posr: continue # not in correct order
        else:
            ans = 'YES'
            break
    print(ans)