from decimal import Decimal p, q = [Decimal(x) for x in input().split()] P1 = (1 - p) * q P2 = p * (1 - q) * q res = 'NO' if P1 < P2: res = 'YES' print(res)