#include <iostream>

using namespace std;

int main()
{
int A,B;
cin>>A>>B;
int sum,subtract,multiply;
sum=A+B;
subtract=A-B;
multiply=A*B;
if(sum>=subtract&&sum>=multiply)
  cout<<sum;

else if (subtract>=sum&&subtract>=multiply)
  cout<<subtract;

else
  cout<<multiply;

  return 0; 
}