N = input()

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

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