p,q=map(float,input().split()) print(["NO","YES"][(1-p)*q