import java.io._
import java.util.StringTokenizer
import scala.util.control.Breaks.{breakable,break}

object Main extends App {
  val in = new InputReader(System.in)
  val pw = new PrintWriter(System.out)

  // val a = new Array[Int](N)


  val N = in.next().toInt

  if(N == 1) {
    while(true) {
      ()
    }
    println("Yes")
    println(2)
    println("1 1")
    println("1 1")
  }
  else{
    var flag = false
    breakable {
      for(i <- 1 to 1000) {
        if (N * 2 == i * (i+1)) {
          flag = true
          break
        }
      }
    }

    if(flag) {
      List()(8)
    }
    else {
      println("No")
    }
  }
}


class InputReader(stream: InputStream) {
  private val reader = new BufferedReader(new InputStreamReader(stream))
  private var tokenizer: StringTokenizer = new StringTokenizer(reader.readLine())
  def next(): String = {
    while (!tokenizer.hasMoreTokens()) {
      tokenizer = new StringTokenizer(reader.readLine())
    }
    tokenizer.nextToken()
  }
}

