n = int(input('Valeur de n : ')) p = float(input('Valeur de p :' )) i = 0 c = binom(n,p,0) while c <= 0.025: i += 1 c += binom(n,p,i) a = i while c < 0.975: i += 1 c += binom(n,p,i) b = i print('[',a/n,';',b/n,']')