fun main(args: Array<String>){
    val input = readLine()!!
    when(input){
        "1"  -> { issaiji() }
        "2"  -> { nisaiji() }
        else -> throw IllegalArgumentException("1歳か2歳のみ許容します")
    }
}

fun issaiji(){
    println("Hello World")
}
fun nisaiji(){
    val num1 = readLine()!!.toInt()
    val num2 = readLine()!!.toInt()
    println(num1 + num2)
}