function MainC(input){
    const num = input.split(' ').map(val => BigInt(Math.floor(val*100)));
    console.log(String(num[0]*num[1]/BigInt(10000)).replace('n',''))
}
MainC(require("fs").readFileSync("/dev/stdin", "utf8"));