v, t = gets.split
t = t.to_i

i, d = v.split(".").map(&:to_i)
puts (i * t) + (d * t / 10000)