L = list('keyence')
S_ = input()
S = list(S_)
K = ''
P = ''
i = 0
cnt = 0
for item in S[:]:
    if i >= len(L):
        cnt += 1
        break
    if item == L[i]:
        i += 1
        K += item
    else:
        if cnt == 0:
            cnt += 1
        P += item
if K != 'keyence' or cnt > 1:
    print('NO')
elif S_.find(P) != -1:
    print('YES')
else:
    print('NO')
