a,b = map(int,input().split()) if a < b: print("YES") else: print("NO") a += 1 print(a+b-(min(a,b))*2)