A,B=map(int,input().split()) if A==B or (abs(B-A)==2 and A+B==6):print("Yes") else:print("No")