fun main() { val (d, r) = readLine()!!.split(" ").map {it.toDouble()} println(kotlin.math.floor(d*(1+r)).toInt()) }