object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a = sc.nextLong()
  val b = sc.next()
  val c = b.head.toString.toInt * 100 + b.takeRight(2).toInt
  println((a * c) / 100)
}
