n = gets.to_i if n >= 200 then gets puts 1 else puts 1.0 - (1.0 - gets.to_f)**n end