function main(input){
  let [A, B] = input.split(' ').map(Number);
  A = BigInt(A);
  B = BigInt(B*100);
  console.log(String(A*B/100n));
  //.replace('n', '')
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim());
