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