S = input()

tag = 'keyence'

ans = 0

for i in range(len(S)-6):
    f = 1
    for j in range(7):
        if not S[i+j]==tag[j]:
            for k in range(i+j+1, len(S)-(6-j)):
                for l in range(j, 7):
                    if not S[k+(6-l)]==tag[l]:
                        break
                else:
                    ans = 1
                    break
            else:
                f = -1
    else:
        if f>0:
            ans = 1

if ans>0:
    print('YES')
else:
    print('NO')