let () = Scanf.scanf "%d %d" (fun n x ->
  if x <= 1 || 2 * n - 1 <= x then print_endline "No"
  else begin
    print_endline "Yes";
    for i = 2 to n - 1 do
      Printf.printf "%d\n"
        (if x <= i then i + 1 else i)
    done;
    Printf.printf "%d\n%d\n1\n" (2 * n - 1) x;
    for i = n + 1 to 2 * n - 2 do
      Printf.printf "%d\n"
        (if i <= x then i - 1 else i)
    done
  end)