import java.util.Scanner

import scala.io.StdIn._
object Main extends App {

  val Array(a,b) = scala.io.StdIn.readLine().split(" ").map(BigDecimal(_))

  def solve() = {
    (a * b).toString().split("\\.").head
  }

  println(solve())

}

