import Foundation


func solution() -> String {
   let AB = readLine()!.components(separatedBy: " ")
   let A = NSDecimalNumber(string: AB[0])
   let B = NSDecimalNumber(string: AB[1])
   
   let A_B = A.multiplying(by: B)
   
   let behaviors:NSDecimalNumberHandler = NSDecimalNumberHandler(
      roundingMode: .down,
      scale: 3,
      raiseOnExactness: false,
      raiseOnOverflow: false,
      raiseOnUnderflow: false,
      raiseOnDivideByZero: false
   )
   
   
   let result = A_B.rounding(accordingToBehavior: behaviors)
   
   
   return result.stringValue
}

print(solution())
