let () = 
  let s = read_line () in
  print_endline @@ if
    List.exists (( = ) "keyence") @@
    List.concat @@ Array.to_list @@ Array.init (String.length s + 1) @@ fun i ->
      Array.to_list @@ Array.init (String.length s + 1) @@ fun j ->
        if j < i then "" else String.sub s 0 i ^ String.sub s j (String.length s - j)
  then "YES" else "NO"

