S = input()
L = 'keyence'
j = 0
unres = ''
res = ''
for i in range(len(S)):
    # print(j)
    if j >= len(L):
        unres += S[j:]
        break
    if S[i] == L[j]:
        res += S[i]
        j += 1
    else:
        unres += S[i]
# print(res, unres)
if res == L and S.find(unres) != -1:
    print('YES')
else:
    print('NO')
