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);
if (result === "") {
  console.log(0);
} else {
  console.log(result);
}
