require 'bigdecimal' input = gets.split(" ") a = BigDecimal(input[0]) b = BigDecimal(input[1]) puts (a * b).floor