object Main {
    def main(args: Array[String]) {
        val a = io.StdIn.readLine().toInt
        val b = io.StdIn.readLine().toInt

        println("X = " + (a + b))
    }
}

Solve Extremely Basic in scala
Solve Extremely Basic in scala
