#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b,i,c = 0;
cin>>a>>b;
if(a<b) swap(a,b);
cout<<(a+b-1)-((a-b)+1)+1<<endl;
}
/**************************************************************
Problem: 1525
User: admin
Language: C++
Result: Accepted
Time:50 ms
Memory:2072 kb
****************************************************************/