let () =
    let main () =
        let n = int_of_string (read_line ()) in
        if n = 1 || (n + 1) land n <> 0 then print_endline "No" else
            let () = print_endline "Yes" in
            for i = 1 to n * 2 - 1 do
                Printf.printf "%d %d\n" i (i + 1)
            done

    in
    main ()