function Main(arg) {
    var arg = arg.trim().split(' ');
    var a = BigInt(arg[0]);
    var b = BigInt(Number.parseInt(Number(arg[1]) * 100),10);
    
    console.log((a*b/100n).toString());
    return;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));