local n, x = io.read("*n", "*n")
if x == 1 or x == 2 * n - 1 then
  print("No")
elseif n == 2 then
  print("Yes\n1\n2\n3")
else
  print("Yes")
  if x == 2 then
    for i = 1, n - 3 do
      print(i + 4)
    end
    print("4\n1\n2\n3")
    for i = n + 2, 2 * n - 1 do
      print(i)
    end
  else
    for i = 1, n - 2 do
      if i <= x - 3 then
        print(i)
      else
        print(i + 4)
      end
    end
    print(x - 1 .. "\n" .. x .. "\n" .. x + 1 .. "\n" .. x - 2)
    for i = n - 1, 2 * n - 5 do
      if i <= x - 3 then
        print(i)
      else
        print(i + 4)
      end
    end
  end
end
