def main():
  import re
  s=input()
  k="keyence"
  if s[:7]==k or s[-7:]==k:
    print("YES")
    return
  for i in range(1,7):
    if re.match(k[:i]+".*"+k[i:],s):
      print("YES")
      return
  print("NO")
main()