import re

S=input()
if re.search(r'[a-z]*keyence', S) != None:
  print("YES")
elif re.search(r'k[a-z]*eyence', S) != None:
  print("YES")
elif re.search(r'ke[a-z]*yence', S) != None:
  print("YES")
elif re.search(r'key[a-z]*ence', S) != None:
  print("YES")
elif re.search(r'keye[a-z]*nce', S) != None:
  print("YES")
elif re.search(r'keyen[a-z]*ce', S) != None:
  print("YES")
elif re.search(r'keyenc[a-z]*e', S) != None:
  print("YES")
elif re.search(r'keyence[a-z]*', S) != None:
  print("YES")
else:
  print("NO")