n = gets.to_i if n == 2 puts "No" exit end ans = (1..n).to_a if n%2 == 0 ans[n-2], ans[n-1] = ans[n-1], ans[n-2] end puts "Yes" puts ans.join(" ")