#include<stdio.h>
int main()
{
      int a,b;
      scanf("%d%d",&a,&b);
      int sum = a+b;
      int sub = a-b;
      int mult = a*b;
      if(sum>sub)
      {
            if(sub>mult)
                  printf("%d",sum);

            else
                  printf("%d",mult);
      }
      else
      {
            if(sum>mult)
                  printf("%d",sub);

            else
                   printf("%d",mult);
      }
}
