S=input()
l=len(S)
if S="keyence":
  print("YES")
  exit()
for i in range(l-1):
  for j in range(i+1,l):
    s=S.replace(S[i:j:],"",1)
    if s=="keyence":
      print("YES")
      exit()
print("NO")
