let AB: [String] = readLine()!.split(separator: " ").map { String($0) }
let A: Int = Int(AB[0])!
let B: Float = Float(AB[1])!
let intB = Int((B * 100).rounded())
var res: Int = A * intB / 100
print(res)