const [a, b] = require("fs").readFileSync("/dev/stdin", "utf8").split(" ");
const result = ((BigInt(parseInt(a, 10)) * BigInt(parseInt(b.split(".").join(""), 10)))).toString().slice(0, -2)
console.log(result);
