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