function MainC(input){
    const arr = input.split(' ');
    const num1 = BigInt(arr[0]);
    const num2 = BigInt((arr[1].split('.').join('')));
    console.log(String(num1*num2/100n).replace('n',''))
}
MainC(require("fs").readFileSync("/dev/stdin", "utf8").trim());
