a = gets.chomp.split a[0] = a[0][2..-1] p (Rational(a[0],10000) * a[1].to_i).floor