import Foundation


func solution() -> Int {
   let AB = readLine()!.components(separatedBy: " ")
   let A = NSDecimalNumber(string: AB[0])
   let B = NSDecimalNumber(string: AB[1])
   
   return Int(floor(Double(A.multiplying(by: B).stringValue)!))
   
}

print(solution())