function Main(input){
  const values = input.trim().split(' ');
  const A = Number(values[0]);
  const B = Number(values[1].replace('.',''));
  const result = A*B/100;
  console.log(Math.floor(result));
}

//固定
Main(require("fs").readFileSync("/dev/stdin", "utf8"));