import java.util.Scanner

object Main {
  val in = new Scanner(System.in)

  def main(args: Array[String]): Unit = {
    println("1000 2")
    for (i <- 1 to 1000) {
      val t =
        if (i == 999) {
          1000
        } else {
          (i + 1) % 1000
        }
      println(s"$i $t")
    }
  }
}
