"use strict";

const main = arg => {
  let t = arg.split(' ')
  const a = parseInt(t[0])
  const b = parseFloat(t[1])
  return Math.floor(a * b)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
