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