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