function Main(input) {
ab = input[0].split(" ");
var a = parseInt(ab[0]);
var b = parseFloat(ab[1]);
 
var ans = Math.floor(a * b);
console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));//おまじない
