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