import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;

void main()
{
    auto N = readln.chomp.to!int;
    if (N < 3) {
        writeln("No");
        return;
    }
    auto NN = N;
    while (NN) {
        if (NN&1) {
            NN >>= 1;
            continue;
        }
        writeln("No");
        return;
    }
    writeln("Yes");
    foreach (i; 1..N+1) {
        writefln("%d %d", i, i+1);
    }
    int x = N+2;
    int j = 5;
    while (j <= N+1) {
        writefln("%d %d", j, x);
        writefln("%d %d", x, x+1);
        x += 2;
        j += 2;
    }
    if (x <= N*2) {
        writefln("%d %d", N+1, x);
        writefln("%d %d", x, x+1);
    }
}