import strutils, sequtils proc trfm(p: float): auto = p.formatFloat(ffdecimal, 5) let t = stdin.readLine.split.map parseFloat (p, q) = (t[0], t[1]) P0 = p * q P1 = (1 - p) * q P2 = (1 - P0 - P1) * P0 echo if P1.trfm < P2.trfm: "YES" else: "NO"