p,q = map(str, raw_input().split()) p1 = ( 1 - float(p) ) * float(q) p2 = float(p) * ( 1 - float(q) ) * float(q) if p2 > p1: print "YES" else: print "NO"