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