fun main(args: Array<String>) {
    val (count, trainFee, taxiFee) = readLine()!!.split(" ").map { it.toInt() }

    when {
        count * trainFee < taxiFee -> print(count * trainFee)
        else -> print(taxiFee)
    }
}