const Main = input => {
    input = input.trim();
    input = input.split(" ");
    const a = parseInt(input[0], 10);
    const b = parseFloat(input[1], 10);

    const result = Math.floor(a * b);

    console.log(result);    
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));