/*
``.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.```.`
.`..`.`..`.`.. .` .`..`..`.`..`..`.`..`..`.`..`..`.`............`.`..`.`..`..`.`..`..`.`..`..`.`..``
`.``.`.`.`..``.    .``.``.`.`.``..`.`.``..`.`.`..JVUOttttrtttttZOO+...`.`.``..`.`.. `.`.`.``..`.`.`.
.`..`.`.`.``.`.`. .`.`..`..`.`..`.``.`.``.`..JUtttrrrrrrrrrrrrrrrwOttVo..`.``.`.,rrwUUa-- `.``.`.`.`
..`..`...`....`...`...`..`..`..O;.........V0rrrrrrrrrvrvvvvvvvvvrvwUXyrtOw.....`(zzzwWWvzn..&...`...
`..`..`.`..``..`.`.`.` n...`..`-yG..``.-9XAAQwWWW9UU9UzzzzzzzzzzzzzzzzWmvrrwo.`.,kzXHbHuuXWzz-.` .`.
..`..`...`...`..`...`.. TzOOO+-.(zwG..W90rvrvzvzzzzzzzzzzzzzzzzzzzzzzzudMHZHHmn,.HuXkHWWHNbRu<    .`
  ?<(-.`..........`......(zttrrrZwuAyZWWAwrvrzzzzzzzzuzzuzuzuuzuuzuuzuzzzuXzzzXWdHmWSuXuuKHHkU,   ..
  `   ??(...`..`.....`.....(1rrvvvvvvrrrrwUUWAyzzuzuuzuzzuzuzzuuzuuzuzuuzzuuzuzuzWHMkuWXuWkuXXXn....
 `     ....?!--.......`.....((dmyzzzvr77<1zttrrwUWkyzuuuuuuzuuuzuuuuuuuuuuuuuuuuuKuWNHXHZZXMkHkU0o..
  ` `.C_(J!._-  !--......(J0vzuzuXuzzzrO&--___?1vvzzXuzuuuuuuuuuuuuuuuuuuuuuuuuuuHZuXHkZWHHHmNNXX%..
 `  ` ```.>__(' .?<11._(JQQWHggHHHyXXuzvrrrrrrrrrvzzzzzuzuuuuuuuuuuuuuuuuuuuuuuuuuWHWXgNkkZZXMgmH_..
  `       7?`._.._(JJJJVHMMM@@HXuuuuuuuzzzzvvv&(JwzzuzuuuuuuuuuuuuuuuuZuXuuuuuuuZuZuZM#UHgHmHkkXHN_-
 `  ` `  ` .```.J0v``?OOSM@@@@@@HQkuuuuuuuuuuzzzzw77<(JzuuuuuZuuZuZuZZuZXKZZZZZZuZZuXMHvCTMY""YYY9..
   `  ` ` ,.` (I=v ``.`-79H@g@@@@@@@@@HHQkkWUuuuuuzuuQkuVIwuuZuuuuuuuZuZXHuZuZZZZZZXHHH@a.`_78WUXXuX
?.  `  `.:...6lll:``.``.`... _<?"WHHMHWXZuuuuuZuXQXY6dSuuZkZuZuC(wVjuuZuXZuuV4HZZZZWZXHH@@N..  ?4Xuu
.,-` ` .!.-JZUAlv`.```.```.77&Z```juuuuuZXXXZVY61???dSZZXWHuZZXwuZuZuuZV~_~.(SZZZZZZZXH@H@MXXn.  .4X
 `4l  .<~-JlltlZG,`.`.``.J`_ ``....?9TCz<<<+-.`.``.dZZXVOdZZZZZZZuZuuX=`.`.-~?1dWZZyyd@H@H@HZuuZ,  .
  .zZ(l~_sttllllld-```.``(>-...?```.(!`````.._<..-SZkY<jHZZZZZZZZuZk=``.`````,4ZZZZyyWH@H@@HZXZXHh.
 ` IuHHaJ3zlOy77!~<````.`((.`.`` .?!(=<-....``.-HQY!`..WZyyZZZZZZV=.`.``.`.`.`dZZyyyWH@@@@@HI(XWuuk
   XHppWHp~~~~~~~.(<.```.`(` !(?~-+_...```.`..`_?Wk..dyZyZXkZZZV' .-uA&J...``.XZZyyWM@HH@@MZrJXZuX$b
` .WVfppWHp~.~.~~~~(I.```.`.``.``.i.``.,??<-..-J7`?HWZZyZXWZZX=````.```.` ?.`,ZyHyWH@H@@H@HZXkXV=_Jj
.dZyyfpppM@h_~~~.~~~~(i.`.HHIJ..,`.?.`..mJm...``.-Wyyyk9GHZy=.``````.``````(.JZyHWM@H@H@@HyZX=~~~J=~
SuuZyVffpWH@h-~~~~~~~~~?-`.Szld@>?(.`?(7""YMMehdWQkVT6uXZX=```.`..`.`..`.`.`.Hyy@NH@@H@@MyXf~~~~~~~~
rzuZZyVffpH@@N2(~~~~~~~~~<.`(OdH```?+.`-7i..?MNvS<<!(dWf=`. .. ``.`````.``..JyyW@@H@H@@MVW#~~~~~~~~~
zrvuuZyyVfpHH@N,hJV77-~~~~(.`,HX;``.`(6,``.?i.Tb ?.dV"~.``..?7uJJ&gJ..```..(yyWM@@@H@@MWW@N-~~~~~~~~
.1OrzuZZyVVfH@B`,SX-`.6,~~~_(JZX{.``.``._?<7^``<!_-~`.```..?qHMY4R?MN..`..dMWHM@@H@@@HWHW@@2~~~~~~~~
 .1OrvzuZZyVK=  .vX``.!.?1--~dZZ}``.`````````.` ```.``.``` .MMdmM3:d#r``.d@BO@@@@@@MHYdVWM@Mc~~~~~~~
   1ztrrzXV^ ` `.j\``( `  `  HZZ[.``.`.`.`.`.`````.``.`.`. 3?9M@!`(HMMh(M"D~(@@@H@MK:(WVW@@@ge~~:~~_
.   <zlO7` `  ` .t.`.``  `  `uZyW,.``.`.`.```.``.``.`.``.```??~``.!``.V'`.3(M@N@HH9~~JVVW@@@HVHJ_~~~
_    J= `  `  ` J..-}  `  `  XZyHN.`````...--. `.```.,````.```````. -!`..=JfW@HWW3::~kVVWM@HVVVyWWw&
<-.<d:   `  .  .:~~/ `  `  ` (ZyHVW,..```J::::<1..```.`.`.``.``.`..G..?<:JWVWMWW$~~:(HyVfW@pfVVVVyyy
4===d{`  ` ,``.t~~(`  `  .  `.XyHyyMo.`..I:~:~:::?u.``.````.``.`.ZWXUn:~(WHffMkW<::~(HyVVfHHfffVVVWW
~6??z[ `   ` `J:::; `  ` ;`   OyHZZHlS.``,+:~::~::(b[``.``.```..<:~4Zyh(HHkffWHWn:~:~WyyVVfHkfVWKHVV
:(I?=t  ` _` .C;;j~` `  J} `  .kWuzXRld/``.1::~:~(J=.```.```..?::::~4yWWbHffpfMWWh-::?WWVVVVfWHWVyWH
::(6?I  ` ` `(:;;j  ?7Ozzw-.`` dWkl(ds=vn ``` (7!````.```...(<::::~:?WyWWfHfffWHVVWn-::?WWWWHVVyWHYT
:::?zz.`   ` Z;;;1     juV=?!` (jRO-?dkl=4,.```.`......-?7<::::::::::?WWWIHffffffVVVfWAwXWyyVyyWHX<:
::::j?!  _` `R::;j.` ` .V`    `(,WwwoJwWmxv9+.JvUGdMHHh::::+++::::::::XWW>?kVVfffVVVyZZuXuZZyyWWZX$:
::::<I_ .    j:::({  `  ` `` ` ((/OXuuuuXWMWmQWkWgggg#vH9UZZAl1<::::::(XW2:?VyVyyyyyZXwC(OwuXD:?YWXe
:::::d;`- ` ``_7"75...... . ` `c`(xJTkuuXHppbbkqmmHH5===UOttX! >:~:::::WWWe+(UZUXVXXZOO><zOw3::~::::
::::;KR.!      `  `  _?1Hk6xd`,```.t`.?TTWWWbbHB9C1??????vwZ!  .__~~~~:Z:?TTUUOvz<(+11<<>?<~.~____::
:;:;:SWS  ` `   `  `   .W%_?4v```````.`.?<<<<<<!~``  `` <+! `   _!.____~___~___`_j=``_~`} __._` ._~~
;:;:;0zXk. ` `  `   `  XP `   1 `.``.`````````` `    ,                  `` ````     _  .I ``  ` ` __
;;:;;Z?WuX,   `  `  ` .X`.<?<` .6..```.````.qYJa.Wb&`.@F?bf!4() MbJ#sv2Jhd?d=dk2dzM ,N.MNF?Kb.6@#O:
;;;;:I?d4uuS, `  ` ` .S% ..~~> ` `_~.``.````(:(>,T5u_.8EvtT&T(6x5?tB7SY(h?^?!?wzd`d ,kMdHNd$JF.EEz;`
;;;;;2?= (4zun,`  `  JX!` 1_:(    ` `     ```` .l.    .  . .       ._``~~~~~~(~~<?7T4fyZurOz<?!````.
;;;;;r<?.  .?wrV-   ,Z\    .!` `   `    ` _?!_.._... .Hjd2.?h./r7,F&&U.7".Ju.Pkdv ..  XyuZ!      .__
;;;;(\.=~ `  `(<Ov1.UV  `     ` `   ` `           (<_.d(dC.?7,J!,^]D=wj....J Ff?v_` ?\.(V`   ___.:;;
;;<! ~ 1:  ` .}   j.?h,  ` `    ` `  `  ` ``  `` .+<:_.         _ `   .` ``.  ````..``` {  __::;<;;;
;<-..  ,l.`.Jr  ` dXP7zZ0-.` ` `  `    `  ,~~~_)`J?>!. .  ...   .... .. ....... .  .. .`:-~::;;;;;;;
;;;;_  `.OrvzX.  .Xf   .7OwXG.. `  ` `  `.l~:(J`,?<`(n2Ps6Pr1I./ $=PP[,.]DJ,.j`.J44Ud=G _~~:;;;;;;;;
;;;<! `  .XuuZk..HV_<_?, ` ?IwvX+.  `      `~` .1<  .`.-.-.  ._.  .     .  ...--...   .-_~::;;;>;>;;
 */

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=(s);i<(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);i--)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define Eunique(v) v.erase(unique(all(v)),v.end())
#define pvec(v) rep(i,v.size()){cout << v[i] << " ";};cout<<endl;
#define pb push_back
#define pf push_front
#define mod 1e9+7
#define m_p make_pair
#define DOUBLE fixed << setprecision(15)
 
typedef vector<int> vi;
typedef vector<string> vs;
typedef long long ll;
typedef vector<ll> vll;
typedef pair<int,int> pii;
typedef vector<pii> vpii;
typedef pair<ll,ll> pll;
typedef vector<pll> vpll;
typedef vector<vector<int>> vvi;
typedef vector<vector<ll>> vvll;
const double pi = acos(-1.0);
 
ll gcd(ll x, ll y) { return (y == 0) ? x : gcd(y, x % y); }
ll lcm(ll x, ll y) { return x * y / gcd(x, y); }

bool IsPrime(int num)
{
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false;

    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2)
    {
        if (num % i == 0)
        {
            return false;
        }
    }
    return true;
}

void solve(){
    ll a,b;
    cin >> a >> b;
    cout << max({a+b,a-b,a*b}) << endl;
}

int main()
{
    solve();
    return 0;
}


Measured memory_bytes: 256