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


      return 0;

}

