def my_index(l, x, default=0):
    if x in l:
        return l.index(x)
    else:
        return default


T=list("keyence")
x=0
j=0
S=input()
#print(my_index(S,"k"))
if my_index(S,"k")==0:
  for i in range(len(S)):
    if S[i]==T[j]:
      x=x+1
      #print(x)
      j=j+1
    else:
      #print("c")
      continue
  if x==7:
    print("YES")
  else:
    print("NO")    
else:
  for i in range(int(my_index(S,"k")),len(S)):
    if S[i]==T[j]:
      x=x+1
      #print(x,i)
      j=j+1
    else:
      print("NO")
      break
  if x==7:
    print("YES")