boys,girls = map(int,input().split()) if boys + 1 < girls: print('YES') else: print('NO') print(abs(boys+girls+1))