import Foundation


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

guard A != 0, B != 0 else {
    print(0)
    exit(EXIT_SUCCESS)
}

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