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