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