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