import java.util.Scanner;

public class Main{
    int maxCount(int a,int b){
        return Math.max(a+b,Math.max(a-b,a*b));
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(a,b));
    }
} import java.util.Scanner; Scanner java.util public class Main{
    int maxCount(int a,int b){
        return Math.max(a+b,Math.max(a-b,a*b));
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(a,b));
    }
} Main int maxCount(int a,int b){
        return Math.max(a+b,Math.max(a-b,a*b));
    } maxCount {
        return Math.max(a+b,Math.max(a-b,a*b));
    } return Math.max(a+b,Math.max(a-b,a*b)); Math.max(a+b,Math.max(a-b,a*b)) Math.max Math a+b a b Math.max(a-b,a*b) Math.max Math a-b a b a*b a b int a a int b b public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(a,b));
    } main {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(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 Main o=new Main(); o new Main() System.out.println(o.maxCount(a,b)) System.out.println System.out System System.out o.maxCount(a,b) o.maxCount o a b String[] args args public class Main{
    int maxCount(int a,int b){
        return Math.max(a+b,Math.max(a-b,a*b));
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(a,b));
    }
} public class Main{
    int maxCount(int a,int b){
        return Math.max(a+b,Math.max(a-b,a*b));
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(a,b));
    }
} Main
import java.util.Scanner;

public class Main{
    int maxCount(int a,int b){
        return Math.max(a+b,Math.max(a-b,a*b));
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        Main o=new Main();
        System.out.println(o.maxCount(a,b));
    }
}