s=input()
c=[]
for k in s:
  c.append(k)
n=["k","e","y","e","n","c","e"]
ans=0
for i in n:
  for j in range(len(c)):
    a=c.pop(0)
    if i==a:
      ans+=1
      break
  if ans==7:
    break
if ans==7:
  print("YES")
else:
  print("NO")