N = input()

S = 'keyence'
index = 0
for item in N:
    if index == len(S):
        break
    if S[index] == item:
        index += 1
    else:
        break

if index == 7:
    print('YES')
elif S == N[:len(S)]:
    print('YES')
elif S == N[-len(S):]:
    print('YES')
else:
    for index in range(len(S)):
        if S[:index] == N[:index] and S[len(S) - index - 1:] == N[-(len(S) - index):]:
            print('YES')
            break
    else:
        print('NO')
