S=input()
K=list('keyence')
n=0
flg=0
i_cut=[0,0]
for i,c in enumerate(S):
  if c==K[n]:
    if flg==1:
      i_cut[1] = i-1
      break 
    n+=1
    if n>=7:
      if flg==0:
        i_cut = [i+1,len(S)]
        break  
  else:
    if flg==0:
      i_cut[0] = i
      flg +=1
 
if S[:i_cut[0]]+S[1+i_cut[1]:]=='keyence':
  print("YES")
else:
  print('NO')