fun main(args: Array<String>) {
    a110(readLineList())
}

fun readLineList(): Array<String> {
    val lineList = mutableListOf<String>()
    while (true) {
        val line = readLine()
        if (line.isNullOrBlank()) {
            break
        } else {
            lineList.add(line!!)
        }
    }
    return lineList.toTypedArray()
}


fun a110(args: Array<String>) {
    println(when {
        args[0] == "1" -> "Hello World"
        args[0] == "2" -> args[1].toInt() + args[2].toInt()
        else -> IllegalArgumentException()
    })
}