const input = require("fs").readFileSync("/dev/stdin", "utf8")
const A = input.split(" ")[0]
const B = input.split(" ")[1]

const a = BigInt(A)
const b = BigInt(Math.round(B * 100))

console.log((a * b / BigInt(100)).toString().replace('n', ''))
