import Foundation

let input = readLine()!.split(separator: " ").map { Decimal(string: String($0))! }
let A = input[0]
let B = input[1]

var result = A * B
let locale = NSLocale.current
print(NSDecimalString(&result, locale).split(separator: Character(locale.decimalSeparator!))[0])
