import Foundation

let line = readLine()!.components(separatedBy: " ").map { Double($0)! }
let A = line[0]
let B = line[1]
let C = NSDecimalNumber(value: (A * B).rounded(.down))
print(C.stringValue.components(separatedBy: ".").first!)
