import Foundation

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