p,q = map(float,raw_input().split()) p1 = (1 - p) * q p2 = (p * (1 - q)) * q print 'YES' if p1 < p2 else 'NO'