import strscans let (_, p, q) = stdin.readAll.scanTuple"$f $f" p0 = p * q p1 = (1 - p) * q p2 = (1 - q) * p0 echo: if p1 < p2: "YES" else: "NO"