fun main(args: Array) { val t = readLine()!!.toInt() repeat(t) { val (a,b) = readLine()!!.split(" ").map { it.toInt() } println(b+(a*b)) } }