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