p,q = map(float, input().split()) a = (1-p)*q b = p*(1-q)*q print("YES" if a < b else "NO")