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