/*
    Author A.G.Maruf
    5 th seme :P
    code written 09:36PM; 23/06/2018
*/
#include <bits/stdc++.h>
#define gc              getchar
#define pc              putchar
#define pb              push_back
#define Sort_arr(n,x)   sort(n,n+x);
#define SortS(s)        sort(s.begin(), s.end());
#define SortRS(s)       sort(s.rbegin(), s.rend());
#define all(s)          s.begin(), s.end()
#define GCin(a)         getline(cin,a);
#define Sz(a)           a.size()
#define arr_rev(n)      sort(n.begin(), n.end(), greater<int>());
#define Gin(a)          getline(cin,a);
#define input(a)        cin>>a;
#define Sz(a)           a.size()
#define input2(a,b)     cin>>a>>b;
#define input3(a,b,c)   cin>>a>>b>>c;
#define input4(a,b,c,d) cin>>a>>b>>c>>d;
#define rep(n)          for(int i=1;i<n;i++)
#define Fast_read       ios_base::sync_with_stdio(false);
#define Unique(n)       sort(Search(n)),n.erase(unique(Search(n)),n.end());
#define PI              3.1415926535897932384626433832795l
#define Ignore          cin.ignore();
#define out(n)          cout<<n<<endl;
#define mem(n,i)        memset(n,i,sizeof n);
#define square(n)       (n*n)
#define cube(n)         (n*n*n)
#define F               first
#define S               second
#define mxin              -INFINITY
#define mnin              INFINITY
#define el              <<endl
using namespace std;
int main ()
{
    //freopen("output.txt","w",stdout);
    int a,b,sum=0,sub=0,multi=1;
    cin>>a>>b;
    sum=a+b;
    sub=a-b;
    multi=a-b;
    int ans=max(sum,sub);
    ans=max(multi,ans);
    cout<<ans<<endl;
}


