import java.util.*;

public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    }
} Main public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    } main {
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    } Scanner sc1 = new Scanner(System.in); sc1 new Scanner(System.in) int a = sc1.nextInt(); a sc1.nextInt() sc1.nextInt sc1 int b = sc1.nextInt(); b sc1.nextInt() sc1.nextInt sc1 int max = a+b; max a+b a b if(max < a-b){
            max = a-b;
        } max < a-b max a-b a b {
            max = a-b;
        } max = a-b max a-b a b if(max < a*b){
            max = a*b;
        } max < a*b max a*b a b {
            max = a*b;
        } max = a*b max a*b a b System.out.print(max) System.out.print System.out System System.out max String args[] args public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    }
} public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    }
} Main
import java.util.*;

public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int max = a+b;
        if(max < a-b){
            max = a-b;
        }
        if(max < a*b){
            max = a*b;
        }
        System.out.print(max);
    }
}