fn main() { let mut pq = String::new(); std::io::stdin().read_line(&mut pq).ok(); let pq: Vec = pq.split_whitespace().flat_map(str::parse).collect(); if (1. - pq[0]) * pq[1] < pq[0] * (1. - pq[1]) * pq[1] { println!("YES"); } else { println!("NO"); } }