p, q = [float(i) for i in input().strip().split(' ')] P1 = (1 - p) * q P2 = p * (1-q) * q print(['YES', 'NO'][P1 >= P2])