s=list(input())
n=["k","e","y","e","n","c","e"]
ans=0
for i in n:
  for j in s:
    s.remove(j)
    if i==J:
      ans+=1
      break
  if ans==7:
    break
if ans=7:
  print("YES")
else:
  print("NO")