/*
uuzzvrrttll=1??>>>;::::~~~~~~~~.~.........................~~~~~~~:::::;;>>???==llttrrvzuuuuZZZZyyyyy
zzvrrttl==???>;;;:::~~~~~~..........`.````````````.`.........____~~~~::::;;>>??==llttrrrzzuuuZZZZZyy
vrrtll==???>;::::~~~~~~......`.`````````````````````...-?777!_.._?7u,~~~::::;>>??=lllttrrzuuuuZZZZZZ
rtll==??>>;::::~~~~......`.`````````````````` ..J77!`````````...`..._T,~~~~:::;;>??==lttrrvzzuuuZZZZ
tll=??>>;:::~~~~......``````````````````..J7^ ` ``  ` `` .,```````...._4,.~~~::;;>>?===lttrrzzuuZZZZ
l=???>;;::~~~......`````HTSu,.``  `..J7!    `      `` .J"~N```````````..?&.~~~~::;;>>?==lltrvvzuuuZZ
=??>;;::~~~~.....``````.@????7SJ.?=     `     ` `` .J=....J;  ``````````..h..~~~~::;;>??=lltrrvzuuuZ
?>>;::~~~~.....````````.D?>>?>?>?8+.``         `.J"_......_b`     ````````.S_.~~~~::;;>??=lltrrvzuuu
>;;::~~~~....``````````.C>??>>>?>>>?8J.`  ```..Y~..........J;  `  ` ``````` G...~~~~::;>??==ltrrzzuu
;;::~~~....```````` `..W1>>?>>>>?>>>>>?S,.`.7^.............-N``  `   ``````` 6...~~~~::;>??=llttrvzu
;:~~~~....``````` ..7` d??>>?>?>>?>>?>>1udMgggNNNNggJ.......([          `````.L...~~~~::;>??=lltrvzz
:~~~.....`````` .7`   `K>?>?>>>>>>+ugNMMMB""7<!~~<?7TWMNNa,..w.`  ` `  ` `````,)....~~:::;>??=lltrvz
~~~....``````.J^     ` #>>?>>>?jgMMM9=_................-?TMMa,b` `   `  `  ````(,...~~~~:;;>??lltrrv
~~~....``` .7``   `    @?>>?1uMM#=.........................(TMNa......  ` ``````4....~~~::;>??=lltrr
~~~...`` .=`` `     ` .b>>jgNH".................`.............?HNmx??17TYY9SA+(..L....~~~::;>??=ltrr
~....` ,^``     `   ` .b+dN#^............6..-(,-...`............(HMm+>>>>>?>>????zOM_.~~~::;>>?=lltr
.... .=```  `` `   ...JNMM^..........`..._n.(MMN,....`..`.........?MNe<>>?>??>????d^...~~~::;>?==ltr
~...v```` ` ..-Z""!_..(M@_........`........?7MMMMp.................-TNN+?>>>????1d4-..-(Jk9UZVs==ltt
..(^`...zY"!_........(MD..............`......JMMMMp....`..`..`......./MNx>??>>?1d!.h7=~(??=lttZNzltt
(v_`,R_.............(NF..(/..(&,...`..........?MMMM;..................(MMs>>?1&T"!``....(1=lltrwWstt
t..`` 4,...........(N@....?,(NMNR_.....`..`....(WMM$..`....`..`..`....._HMe7=```````....~_1lltrrzWst
...````.4,........-dM:.....(7MMMNR-.....................`............(.?^ ``  ``````....~~~1lttrzzWs
...``````,4,....`.(NF........(MMMMb..`....--................`....(.7!        `  ````....~~::1trrzuuW
..````` ` `.5J_...JMt.........?NMMM[...`.HH5._(J7[...`...`...--?^`          ` `````....~~~::;1rrzuuX
...````` `  ` 7a,.dM{....`...../MMMN......(J=`  .>......._(/=             `  ` `````...~~~::;>zwzuuZ
....```` ``     (4MN{..........._7"^...(/^    `.C....-(J=`                  ` ` ```....~~~::;>?zXuZZ
....````` `      JdM[...`...`........`_3..  ..?!..(-7!                  ` ` ``````....~~~::;>??=zXuZ
r...``````  ` ``(CJMb..............`......__..-(?^                     `  `  `````....~~::;;>?=llOXy
J/...````` `  `,3>+MN-.`..`...`..........._(J=``                     `  ` ```````....~~~::;>??=ltrrX
_j,..`.```` ``.5>>?dNb...`......`......_-?'`                            `  `````....~~~::;;??=llrrvz
~~j,..```````.D??>>>MM/....`........(-=`                          `  ` ` ```````...~~~:::;>?=lltrrzu
~~~j,...````.E??>??>?MN-.........(J=                            `   ` ` ``````....~~~~::;???=ltrrvzu
:~~~?,...``.@>?>?>>??dMN_....-(?^                        `  `    ` `  ````````...~~~~:;;>??=lttrvzuu
::~~~?/....K??????>>?>dMN-_(7!                               `  ` ` ````````....~~~:::>>??llttrvzuuu
;:::~~/e.(K==?????????<dM"!                          `    `   ` ` `` ``````...~~~~:::;>??=lttrvzuuuZ
>;;:~~~(ndAa&&&&&&&&&x"`` `    `                  `    `   ` ` `` ``````.....~~~~::;;??==lttrvzuuuZZ
?>;;::~~_4,_....`..7``` `  ``   ` `  `  `  `  `     `   ` ` ` `` ``````....~~~~~::;>??=lltrrvzuuuZZZ
=??>;::~~~?e_.--7~```````` ` ``  ` ` `   `   `  ` ` `` `` ``````````.....~~~~:::;>???=lltrrzXuuuZZZZ
l=??>;;;::~_X7<....`````````` `` `  ` ` ` ` `  ` ``  `` `````````......~~~~~::;;>??==lttrrA0uuZZZZyy
ll==??>;;+J9z--------............................................------((((+++++zzzzzOrrwdSuuZZZZyyy
ttll==??d0lppWZZuuuuuuuzzzvvrrvrrrrrrrrrrrrrrrrrrrrrrvrrrrvvzwCU4uzuZZZZZyyVVVfpppbkbkrd8uuuZZZZyyyy
vrttll==WrtbbpWZyZZuuuuuuuzzzzzzzvvvvvvvvvvvvvvvvvvvzzzzzzzuuXoIjZZZZZyyyVVffppppbkkkk8uuuZZZZyyyyyy
zvvrttlldKvkkk9UUUUUZZXZuuuuuII7Ozz2OzzzzzzzzzzzX1Xzuuuv7TXXTTT<TTTyXyVVyfpfWpbbHHHHMkuuZZZZyyyyyyyy
uzzvrrtttWzqqkWWfjdXy0-ZZn(XXT774XC!+vljuuuuuuuG-(JXuuV777XXJ(I<<~&yk(W3Jf=Jm&?H{dMqmkuZZZZyyyyyyyyy
uuuuzzvrrZHmmqqH(fVVV$(yyyLjyyZX>XX(Zrd[wuuuuuZn,(JwTZZyy$(yJ(1+<<7Wpk-jbk-pkH:W[XmmgRZZZyyyyyyyyyVy
ZZuuuuuzvrdNmmmqe?TWfk(=JyWdyyV=(y%dT>XyZZ?4ZyZZn?UV(yyXYidhJ(Wl<(Wppp>XkknJT1JqYWmggkZyyyyyyyyyVyyy
ZZZZuuuuzzzMgggmgmHppppffffffVkVyVVyyyyyyyyXyyyyyWkXVffkXfffWdwXpWkWkkkHHMHqmmmmgggggKyyyyyyyyyyyyVy
yZyZZZZuuuuuNyyZyZZytltllll===????????>>?>????????????====llllttttrwAXUzuuuuuZZZZZyZyyyyyyyyyyVyVyyV
yyyyyZZZZZuuXNyyyyyZwrrrttttllllll================llllllttttrrwAXUUzuuuuuuZZZZZyyyyyyyyyyyyVyVyVyVyy
yyyyyyyyyZZZZdHfVVVyWwzvvrrrrrrttttttttltltlllttttttttwwwwXUUzzzuzuuuuuuZZZZyZyyyyyyyyyVyVyyVyyyVyVy
yyyyyyyyZyZZZZWkpffffWuuuzzzzzzvvrvrrrrrrrrrrrrrrrvzzzzzzzuuuuuuuuZZZZZZyZyyyyyyyyyyVyVyVVVyVVVyVyVV
yyyyyyyyyyyyyyZMWpppfpWuZuuuuuuuuuzuzzuzzuzuzuzzuuuuuuuuuuuuuZZZZZZZZyyyyyyyyyyyyyyyVVyVyyVyyVyVyVyy
*/
#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