import java.util.*;
	public class Main{
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      }
      static int compare(int a,int b){
        if(a>=b)return a;
        else return b;
      }
    } import java.util.*; util.* java public class Main{
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      }
      static int compare(int a,int b){
        if(a>=b)return a;
        else return b;
      }
    } Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = compare(a+b,a-b); c compare(a+b,a-b) compare a+b a b a-b a b System.out.println(compare(c,a*b)) System.out.println System.out System System.out compare(c,a*b) compare c a*b a b String[] args args static int compare(int a,int b){
        if(a>=b)return a;
        else return b;
      } compare {
        if(a>=b)return a;
        else return b;
      } if(a>=b)return a;
        else return b; a>=b a b return a; a return b; b int a a int b b public class Main{
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      }
      static int compare(int a,int b){
        if(a>=b)return a;
        else return b;
      }
    } public class Main{
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      }
      static int compare(int a,int b){
        if(a>=b)return a;
        else return b;
      }
    } Main
import java.util.*;
	public class Main{
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = compare(a+b,a-b);
        System.out.println(compare(c,a*b));
      }
      static int compare(int a,int b){
        if(a>=b)return a;
        else return b;
      }
    }
