function main( args ) {
  const tmp = args.split(' ');
  const A = parseInt(tmp[0],10);
  const B = parseFloat(tmp[1])
  console.log(Math.floor(A*B).toString());
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));