import re

regex1 = re.compile(.*keyence)
regex2 = re.compile(k.*eyence)
regex3 = re.compile(ke.*yence)
regex4 = re.compile(key.*ence)
regex5 = re.compile(keye.*nce)
regex6 = re.compile(keyen.*ce)
regex7 = re.compile(keyenc.*e)
regex8 = re.compile(keyence.*)

string = input()
match = re.findall(regex1, string)
match += re.findall(regex2, string)
match += re.findall(regex3, string)
match += re.findall(regex4, string)
match += re.findall(regex5, string)
match += re.findall(regex6, string)
match += re.findall(regex7, string)
match += re.findall(regex8, string)

if match:
  print("YES")
else:
  print("NO")