function main(input) {
  const a = parseInt(input.split(" ")[0]);
  const b = parseFloat(input.split(" ")[1]);
  
  console.log(Math.floor(a * b));
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
