A = 'keyence'
S = input()
i = 0
idx = 0
prev = True
cnt = 0
for item in S:
    if i == len(A):
        if idx != len(S):
            cnt += 1
        break
    now = True
    if item == A[i]:
        now = True
        i += 1
    else:
        now = False
    if prev is True and now is False:
        cnt += 1
    idx += 1
    prev = now
if cnt > 1 or i != len(A):
    print('NO')
else:
    print('YES')
