S = list(input())
L = list('keyence')
if len(L) > len(S):
	print('NO')
else:
    while L[0] == S[0]:
        L = L[1:]
        S = S[1:]
    while len(L) != 0 and L[-1] == S[-1]:
        L = L[:-1]
        S = S[:-1]
    if L == []:
        print('YES')
    else:
        print('NO')