package main import ( "fmt" ) func main() { var N int var P float64 fmt.Scan(&N, &P) if N >= 200 { fmt.Println(1) } else { pp := 0.0 for i := 0; i < N; i++ { pp += (1 - pp) * P } fmt.Println(pp) } }