object Main extends App {
  val ab = scala.io.StdIn.readLine()
  val abArray = ab.split(" ")

  val a = abArray(0).toLong
  val b = (abArray(1).toDouble * 100).toLong

  println(a / 100 * b + a % 100 * b / 100)
}
