P, Q = map(float, input().split()) if Q * (1.0 - P) < P * (1.0 - Q) * Q: print("YES") else: print("NO")