require 'bigdecimal' n=gets.to_i sr=gets.chomp h=BigDecimal("100.0",300) one=BigDecimal("1.0",300) r = BigDecimal(sr,300) r2=one n.times{ r2=(r2*(one-r)).round(300) } puts (h*(one-r2)/r).to_s("F")