n = gets.to_i
if n == 1 || n % 2 == 0
  puts "No"
  exit
end

puts "Yes"
2.times do |i|
  puts "#{i+1} #{i+2}"
  puts "#{i+1+n} #{i+2+n}"
end
puts "3 #{n+1}"
((n-3)/2).times do |i|
  puts "#{i+4} #{i+5}"
  puts "#{i+5} #{n+1}"
  puts "#{n+1} #{n+i+4}"
  puts "#{n+i+4} #{n+i+5}"
end