S=input()
l = len(S)
#keyencexxxxx
if s[:7]=="keyence":
  print("YES")
#kxxxxxeyence
elif s[:1]=="k" and s[l-6:]=="eyence":
  print("YES")
#kexxxxxyence
elif s[:2]=="ke" and s[l-5:]=="yence":
  print("YES")
#keyxxxxxence
elif s[:3]=="key" and s[l-4:]=="ence":
  print("YES")
#keyexxxxxnce
elif s[:4]=="keye" and s[l-3:]=="nce":
  print("YES")
#keyenxxxxxce
elif s[:5]=="keyen" and s[l-2:]=="ce":
  print("YES")
#keyencxxxxxe
elif s[:6]=="keyenc" and s[l-1:]=="e":
  print("YES")
#xxxxxkeyence
elif s[l-7:]=="keyence":
  print("YES")
else:
  print("NO")
