fun main(args: Array<String>) {
    val line = readLine()!!.trim()
    val (aStr, bStr) = line.split(" ").map {it}

    val aIchi = aStr.indexOf(".")
    val aWari = if (aIchi >= aStr.length - 3) {
        Math.pow(10.0, (aStr.length - aIchi  - 1).toDouble()).toLong()
    } else {
        1L
    }

    val bIchi = bStr.indexOf(".")
    val bWari = if (bIchi >= bStr.length - 3) {
        Math.pow(10.0, (bStr.length - bIchi  - 1).toDouble()).toLong()
    } else {
        1L
    }

    val aLong = aStr.replace(".", "").toLong()
    val bLong = bStr.replace(".", "").toLong()

    val result: Long = aLong * bLong / (aWari * bWari)

    println("${result}")
}