fun main(){
    val r = readLine()!!.split(" ")
    val a = r[0].toLong()
    val b = r[1].toDouble()

    //println((b * 100).toBigDecimal())
    val res = (a * (b.toBigDecimal() * 100.toBigDecimal()).toLong()) / 100
    println(res)
}