#include #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ int b,g; cin>>b>>g; if(bg) cout << b-g+1 << endl; else cout << g-b-1 << endl; }