fun main(args: Array<String>) {
    val (a, b) = readLine()!!.split(' ')
    val bb = b.split(".")
    val bbb = bb[0].toInt() * 100 + if (bb.size > 1) bb[1].toInt() else 0
    val ab = a.toLong() * bbb
    println(ab/100)
}
