#include <bits/stdc++.h>
#define rep(i,n) for (int (i) = 0; (i) < (n); i++)
#define ll long long
using namespace std;

int main() {
  int n,m; cin >> n >> m;
  cout << max(n+m,max(n-m,n*m));
}
#include <bits/stdc++.h>
#define pi 3.14159
using namespace std;

int main()
 {
 	int a,b,c,d,e;
 	cin>>a>>b>>c;
 	e=c;
 	d=a;
 	a=b;
 	b=d;
 	c=a;
 	a=e;
 	cout<<a<<" "<<b<<" "<<c<<" "<<endl;
 	return 0;
}
 	
 					