package main import . "fmt" func main() { var n,p float64 Scan(&n,&p) if n>199 { Println(1) return } q:=1-p s:=1.0 for ;n>0;n-=1 { s*=q } Println(1-s) }