fs = require('fs').readFileSync('/dev/stdin','utf-8');
tmp = fs.split(' ');
A = BigInt(parseInt(tmp[0],10));
B = BigInt(Math.floor(parseFloat(tmp[1]) * 100));
C = (A * B / BigInt(100)) + '';
console.log(C);
