/*
                                                                          ..._<!!_`.```````. _~??<<(..           ....
                                                                   .._~~~__```.````````.``.``........` ?71....?<```` ~-
                                                               ..?~~~~~_.`````.``.``.`.`..`...........`. .?! ```..`.`.-1.
                                                            ..<~~~~~~_ ```` .-~~``    `__`.--.........-/!`.`..`........_(1.
                                                          .v<~~~~~~~_..`. .J!     `````````..._.~~.~.~_`.` ..-((<+1z++>;;;z&
                                                         .3~~~~~~~~~~~~~_(=     ``````````........___. -vC;;;<<<~~~~~?1O+<;?n.
                                                        .=~~~__`_~~~~~~~(!   ```.``.`.` .-1><<+x7zC><_`-<>>;;::::~~~~~.~_?z+?h.
                                                      ._`__````` ` `_~~_  ._`````.``.`.j6<<~_` (1><;>_ ~~<<>>;;::::~~~.... ?1Jh.
                                                     _   `````````` ~~_  (<_``.``````.dZ^ ```.(>><(<;< _~~_<;;;:::::~~_..````-?h.`
                                                       ` ```.``.``` ~_  (;!`````.``..v'```` _(;<~~:~(<. ~~~~<;::::~::::__.`````.1.
                                                      `.!.``````.``__  <>< ``.````../ ```..~_;<~~_~.~~_ _~~.~_<::~:~:~~~~_.`.```` <.
                                                     `./```.``.``.._  (>>!``.``.`.(2```.`._._:_~.__..~~  ~.~..._::~:~~~~~~~-``.````.i.
                                                   ```.``````.``` _   ;>;_``````.-c```.`-`` _<___~....._  .~~~..____~~~~~~.. ````.``.(-
                                                  `.`.:```.```.`._  `.>>;.``.``.-,```. _``. __`_._....__  ..~.~..._._~~.....```.```.``.i
                                                 ```..``.```.``` ` _`.;;<-```.``.>``. _``` _```` ..```..   .........`` ...````.`````....1.
                                                `````_`````.``` .  _`(;;<_``````(.``. ``.._````` ~.````    ..~.... -```````.``` -`.`....~<.
                                               ``.`` ~``.```` _.   `.(:::_``.`..>.``.````-``.`.`_~``.``.   .....```(-`````.``.` 1.``...~.(o.
                                              `  ```.````.``.:_!.`.` ::::_`````,```````..~````` ~_```````  ````````.n.`.````````jl`....~~~jI
                                            .`.-````.``.`` _:~.._```_::~:_`.`` {`.````.._.``.` ~~ `.``.``  ````.`...j{``.``.```.(O-...~~~~_Zl
                                            ;`.~.``.~````._::_~:_`` ~::::~````.```.``. _~````._~_```.```.  `.`````_`(1_....`.`. (1o_~~~~~_~j(-
                                           .!`_~.```.`.`.:::_..:_``.::~:~_`.``.`````.`~_ ``.`.~~_.```````  ``......_(+>......-~.(<O<~~~~~(~(;1
                                           ,`.::_```_``.::~~_<_:_``_:::::~.`.````.``` ~_``.` ~~~_`.``.``` . ......(<(<1_~.~~~~~~+<(I:~~~~~<~l )
                                           (._::_`.`-._::~::::_:~` ::~::~~_```..````.~~_```.~~~~_``.``.`..: ~~.~~_(>(>(>~~~~~~~_>_(w<:~::~<~( (
                                           r :~:_``_._::~:::(~_::_-:~:~::~_.`` ``.`. ._` .~~~~~~_....``..() ~~~_``.>(l_j_~~~~~~(>`_z::<~~:(~(_ `
                                           r.::~~``.(~:::::~(__::~_:::::::_``` `...._(_.~~~~~~~~~~.......$\ `   ` <l(l_.:~~~~~~(~..+$:(+~~(_~}
                                           t.~:~:-` (<:~:::~({_~::~:~~:~:~~``..`....~<~_~~~~~~_~~~_~_`  ((}` `` `.<l(l``1~~~~~~?<~ (O_JO:~(<__                `.
                                           l ~~:~_``(<~::~:~([.~_:~~~~~:~:_.``.`....(l~ ~~~~~_ ~~_ ` ` .>(:`` `` c(r({``(-~~~~~{```(j_((l~(<()                 .`
                                           I`:~~:~.`.>~~_~~~($ ~~::~~~~~::_ ``. ..~.(>_ ~~~~~` ~~_  _`.t~(`  .~~(:_r(!``.r(~~~(!```.+lj~1:(~(\                 (-
                                           (`_~~~~_``<:~:~~_+S`_~~:~~:~~~:~-``._..~~d~_`-__```_~(  _ .2~(( -~~~~/` r(` -^$(>~~(`.``.c$Kr(<o4-                  >_-.` `   `
                                           .- ~:~:~ `-<_(_~_+d__~~~:~~~~~~:_``.;.~.(d~_  ```` ~~/ __ J~_<c_~~~~(`` l>`-``1(l(<>....Y(wkUow_..?<,          `  ._....(?!
                                            > ~~~~~_` <<~<~(>d; ~__~:~~:~~:_`` [.~~cI_` .~~. .~(!_~~J+++-r~~~~(!`` <\```..J<(dMMMMMdHWWXbYi-.._,,          _!`_<_._`
                                            . _~~~<~-`_1~(-(>O[ ~_ ~~~~~~~~~``.t.~(CC_ ~~~~_ _~J-~~(~~ `(l~~-(%```.J``../.dMMM@vCd%Z>JWWW(  1...,,              .-:
                                             ~ ~~~<~~_ (<~1;?zn  _`~~~~~~~~~```j~_2~l_~~~~~_.<(>~~(_````,~~(1C````.\``.{.MMMUXv`.=.z>KW8d_[  <...(,              (
                                               ~~~>~~~_-I~_I>jZ. _` ~~~~~~~~ .`(-J~~>,~~~~~_J_/(~/```.` 2(+IC ``.`_`...dB!wuXf  ``JIJSXrd)(   <...(l             .
                                                ~~>~~~~-(c~?cjZ}    .~~~~~~~_ .(n$~_(c~~~~~(}(_>v?<<<<<jhn+nJ&+``.``.(dK>.wXW` `` I1WX9Cw].]   (....<.
                                                _~<~~~~~-u-;?zO> `_  ~~~~~~~_`_.Uj_.1<~~~~(&(gJgggg&+A&J<_!`dkd```.` $XtXvVz' ```.zdXKC~(]`,...,!!_...(,
                                                 ~(~~~~~~(w<>+Xz      .~~~~~_  .(~?NgJJgHMMMMHmmmmH99UUUo-.`dId-.jwVrwrw ?!```.` (dWKn-:_L.~``````-!```.-
                                                  (_~.~~~~(k<j>!! .` . .~~~~..  .[(4M@mHWY`(H90twwH<<<?:```.HZz?uZ77<~Wr{````  .JV7!_`_?<t`````.!````````~
                                                   >~~.~.~~($;`.<.   <  _~.~~_ ..qH+H@I<?- .(uuuXWP    ````,Z?j>....._.4yo.(J?<_(?OI-.`.>``` .J~`````````.`.
                                                   <~.~~~~~~(:(~_- _  .   ~.~_`(rdK/?@[  ,WUUXXUZV^   ````.01u%....`.``` _!`..._.(j>:~q\```.f!```.`.. .`````.,
                                                    _~...~~~(:~~(T! _   `  `_ ` C?4l`wK:   7z+z:+v  ```  .6?u^..`..``````````..`>((::(>```.^````.J<_````.````..
                                                     _~~..~~~< _-<_ __.`  ` `  `.-.)~ 4n. ```` `` `  ..vVz??~.`..`..`.. ````.. .~;>:~(/_..~``..J?x!``````.`.``(.
                                                   ~  .~~.~~~(>`-~_. _~_. _.     (.( !-?r&(-......_?<!~```````.``````.  `````` (_+:~::?-/ ``.(XY!```..  ...```.?.
                                                   (.  .~~.~~~(l(__(  ~~~_._._    1 :  _?77<<~.....``````````````````````.```  c~>~::~_?```.w=~.`` .-<!_```````._.
                                                    o   .~~.~~_(1._-{  ~~~~_.~~_.. 1.. ` _.....``.```````.`.``.`.`.```````.`` JO(>~~~_`  .?!.._((j+(V<_-.````.`` _kw+.
                                                    j<.  .~~~_<z<+i.?. _~~~~.....<,-3_     ....`````.`.`````.``````.``..```` (Vd(~~~(!.__._((7~.[  ?4h_.._ .````` (wkv_
                                                    (z<.  .~~(>z<>1ZUA  _~~......_j+__-     ````.``.```.``.````.````` -```..-dIdZ_~_+1!7<d~``  (Zn  .dS,-..`..`.``_SKr{
                                                     z><. __(>><~;>zrd>  .~~_`_..._1G-(,     ````````````.``.```.``.``````.Ju0zdP~_<>!..Jd```  (kwh,Srd0XS&-..``.`.dXwt
                                                     ;<><- (>>><~<>?Ow<-  _~_`.__.._1S,._    ` `.``.``.`_??! `````````.``.IuSOIdP_<?:._j0w .   ddvzZHOwwrrd;.~~~<(JwrwZ,
                                                     <~<<<(<>><~.(??zk<(.  ~~ ``-_..-jk&.~.     ````.````````.`.``.````..UHMAggX$<?<__+Srr `   drO+?JyllOVO6OOOOlllOrkvw-.
                                                     +<<?>>;>;<.~(??zR>>G  _~_`.`.~...wr~..j-.   ``````.```.````.``.``.JvvvXzzzd$?<< (ZrZO     dwzOz?XOllllllllllzwrw0rvvX_`
                                                     (z<1>>>;<~~~(>?z$??zl  ~~ ````.-`.O, ~.(+?<-. ``.```.```````.```.XrtrrXzzzdI<!_ -rZ?z_    dkv>zz1StOl=l=l=lzrrrwXrvdSO_
                                                     (z>1z>><<.~_<>?dz?1kw.  ~_```.``_- z, .-.z~~~::::_-...`.`.```.`.StttrdRzzzdI:  .rO1?+{   `J0><>11ktttllllzrrrrrwXvvvrv:
                                                  ` `<O>+z><(_~_;<:>Z?>drdw.  ~ .```.``?.?,` ?.1~~~~~~~~:::<?71a+-..#tttOOwWuuvz>  .(OI?><\    (R>_<>+vXttttOrrvrrvrOOllOrvl
                                                `  ` +z<+z<(<~(><::+1?1krdSt    .``````.`?Jk&.-<O_~~~~~~~~::<~J77771Ktv1=zuXkvvC`  (<wv>?<<   `.SI _<>zkzlOOOOOVVOlll=llltrw.
                                                  `  zz>+z<<~(><~~~??>jwrrRv+   _`.``.`````(Uyzzwn-_.~~~~~_..`w~~~~(01??=wuXWrO!  .<(u><?>(.  ` VZl -<>zSzll=llllll=ll=llOOw`
                                               ` `   z1>+><~(;<~~_.>?1krrwNOw_.  ``.````.````.7uzvWwXw+-_..```1._`_(=z??1zuuWXI   (>~z{.<?<>  ` G?Oo. (<vSOtOzl==l=l=l=lO0rw-
                                                    .<1>+<~(;~~.~_.>>drrrwHrrh<    `.`.```.``. ._?OHOrrrvw+.....`.(ZC???zZwzXkC   (<~(t`(?<(. ``jO<jI.`_<zWOttOOOll=lllzZtrwI.
                                                    +>?<<~_<<~.~.`(>j0rrrZllll$,,   ```.````.``(zw+-XlllltllllOZVI??????zOlwXWI_  (<~~~i.(>>:```,kto?G-` <zkttttttlzl=lltlrwrG
                                           `       .z><<~-J~~~~._.(10rrrdNzzOZ(X<i.  ``.``````.` 4OwJ1lllllllllll=????==lllzwWIi  _>~~_`_<(>1.`` OttI/O,` (XOtllllzIlzllllOdrd_
                                                   <;><-J<~~~~~~..+ZrrrwwdMWM=HHh_?-   ``.`.````. 1lw-1szzlllllll====?=lllllOXkdo  <_~_``` ?il```(ZttO_On.`jkttl=lllyOll=lldrd!*/
#include "bits/stdc++.h"

using namespace std;
#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#define M 1000000000000000000LL
#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 reall(a) (a).rbegin(),(a).rend()
#define pb push_back
#define pf push_front
#define MIN(a,b) a=min((a),(b))
#define MAX(a,b) a=max((a),(b))
#define SIZE(v) (int)v.size()
#define DOUBLE fixed << setprecision(10)
#define fi first
#define se second
const double pi = acos(-1.0);
typedef vector<int> vi;
typedef vector<string> vs;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef vector<char> vc;
typedef vector<double> vd;
typedef vector<bool> vb;
typedef deque<ll> dll;
typedef pair<ll, ll> P;
typedef vector<P> vP;
const ll mod = 1e9 + 7;
ll dx[4] = { 1,0,-1,0 };
ll dy[4] = { 0,1,0,-1 };
template <typename T>
bool chmin(T& a, T b) {
	if (a > b) {
		a = b;
		return true;
	}
	return false;
};
template <typename T>
bool chmax(T& a, T b) {
	if (a < b) {
		a = b;
		return true;
	}
	return false;
};
void Pvll(vll v) {
	cout << "------------------------------------------------\n";
	rep(i, v.size()) cout << v[i] << " ";
	cout << endl;
	cout << "------------------------------------------------\n";
}
void Pvvll(vvll v) {
	cout << "------------------------------------------------\n";
	rep(i, v.size()) {
		rep(j, v[i].size()) {
			cout << v[i][j] << " ";
		}
		cout << endl;
	}
	cout << "------------------------------------------------\n";
}

void Ps(string s) {
	cout << "------------------------------------------------\n";
	rep(i, s.size()) cout << s[i] << " ";
	cout << endl;
	cout << "------------------------------------------------\n";
}

void Pvs(vs s) {
	cout << "------------------------------------------------\n";
	rep(i, s.size()) {
		rep(j, s[i].size()) {
			cout << s[i][j] << " ";
		}
		cout << endl;
	}
	cout << "------------------------------------------------\n";
}

void Yes(bool x) {
	if (x) cout << "Yes\n";
	else cout << "No\n";
}

void YES(bool x) {
	if (x) cout << "YES\n";
	else cout << "NO\n";
}

void yes(bool x) {
	if (x) cout << "yes\n";
	else cout << "no\n";
}

void Yay(bool x) {
	if (x) cout << "Yay!\n";
	else cout << ":(\n";
}

//最大公約数
ll gcd(ll m, ll n) {
	if ((0 == m) || (0 == n))
		return 0;

	// ユークリッドの方法
	while (m != n)
	{
		if (m > n) m = m - n;
		else         n = n - m;
	}
	return m;
}
//最小公倍数
ll lcm(ll m, ll n) {
	if ((0 == m) || (0 == n))
		return 0;

	return (m * n / gcd(m, n));
}

ll  n, m, r, l, k, h, ans = 0, ret = M;
bool flag = false, flag2 = false, flag3 = false;
string s,t;

void INIT() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout << DOUBLE;
}

int main() {
	INIT();
	ll a, b;
	cin >> a >> b;
	cout << max(a + b,max(a - b, a*b)) << endl;
}


Measured memory_bytes: 256