import scala.io.StdIn._
object Main{
  def main(args: Array[String]): Unit = {
    val one = () => println("Hello World")
    val two = (A: Int,B: Int) => println(A+B)
    readInt match {
      case 1 => one()
      case 2 => val A = readInt
                val B = readInt
                two(A,B)
      case _ =>
    }
  }
}

