S = input()
S_list = [s for s in S]
trueWord = 'keyence'
truen = len(trueWord)  
n = 0
skip = 0
answer = 'NO'
pre = True
cur = True

for i in range(len(S)):
    s = S_list[i]
    if s == trueWord[n]:
        n += 1
        cur = True
    else:
        cur = False

    if pre != cur:
        skip += 1
    pre = cur

    if skip > 2:
        break

    if n == truen:
        answer = 'YES'
        break

print(answer)