import java.math.BigDecimal

fun main(args: Array<String>) {
    val inputs = readLine()!!.split(" ").map(String::toDouble)

    var sum: BigDecimal = BigDecimal.valueOf(inputs[0]).multiply(BigDecimal.valueOf(inputs[1]))

    println(sum.toLong())
}
