S = input()
S_list = [s for s in S]
trueWord = 'keyence'
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 n == len(trueWord) - 1:
        answer = 'YES'
        break
    
    if pre != cur:
        skip += 1

    if skip > 3:
        break
    
    pre = cur


print(answer)