S = input()
K = 'keyence'
for i in range(len(S)):
    if not S[i] in K:
        S = S.replace(S[i], ' ')
S = S.split()
if S==K or S[0]==K or S[0]+S[len(S)-1]==K or S[len(S)-1]==K:
    print('YES')
else:
    print('NO')