s=input()
k="keyence"
t=""
for i in range(7):
  if k[i]!=s[i]:
    t+=k[:i]
    break
if s==k:
  print("YES")
  exit()
for j in range(7):
  if k[-j-1]!=s[-j-1]:
    t+=k[7-j:]
    break
print("YES" if t==k else "NO")