class Calc0221 EPS = 1e-2 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @n = args.shift.first.to_i end def run return 100 if @n == 0 nm = 100 * @n nc = 1_000_000 - nm pa = 0.99 * nm / @n + 0.01 * nc / @n pb = 0.01 * nc / @n pb / pa * 100 end end puts Calc0221.new(STDIN.readlines).run if __FILE__ == $0