import Foundation

let line = readLine()!.components(separatedBy: " ").map { Decimal(Double($0)!) }
let A = line[0]
let B = line[1]

print(Int(Double(truncating: (A * B) as NSNumber).rounded(.down)))
