require 'bigdecimal' require 'bigdecimal/util' d, p = gets.chomp.split(' ').map(&:to_f) puts ((1 + (p / 100.0).to_d) * d).to_f