let s = read_line ()

let k = "keyence"

let s_len = String.length s

let () =
  for i = 0 to s_len - 1 do
    for j = i to s_len - 1 do
      if (String.sub s 0 i) ^ (String.sub s j (s_len - j)) = "keyence" then begin
        print_endline "YES";
        exit 0
      end
    done
  done;
  print_endline "NO"