import java.math.BigDecimal
import kotlin.math.log10

fun main() {
    val (a, b) = readLine()!!.trim().split(' ')
    val an = a.toLong()
    val bn = (b.toBigDecimal() * BigDecimal(100)).toInt()
    println(an * bn / 100)
}
