function Main(input){
  input = input.split(" ");
  var a = BigInt(input[0]);
  var b = BigInt(input[1].split(".").join(""));
  console.log(String(a*b/100n).split("n").join(""));
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
