// Multiplication 3
import Foundation

func main() {
    let ab = readLine()!.split(separator: " ")
    let a = Int(ab[0])!
    let b100 = Int(ab[1].replacingOccurrences(of: ".", with: ""))!
    print(a * b100 / 100)
}

main()