use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut s = s.split_whitespace(); let n = s.next().unwrap().parse().unwrap(); let p: f64 = s.next().unwrap().parse().unwrap(); println!("{}", if n > 199 { 1. } else { 1. - (1. - p).powi(n) }); }