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

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