S=input()
N=len(S)
T="keyence"
U=""
V=""

for i in range(7):
  if S[i]==T[i]:
    pass
  else:
    U=S[:i]
    break
for j in range(7):
  if S[-1-j]==T[-1-j]:
    pass
  else:
    V=S[-1-j+1:]
    break
    
if U=="" or V=="" or U+V==T:
  print("YES")
else:
  print("NO")