S=input()
T="keyence"
ans=0
for i in range(8):
  X=1
  K=0
  for j in range(len(S)-i):
    if(j<i or j>i+len(S)-6):
      if(S[K]!=T[K]):
        X*=0
      K+=1
  ans+=X
if(ans):
  print("YES")
else:
  print("NO")