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 puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    }
} 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 puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    } 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 puls = A + B; puls A + B A B int minus = A - B; minus A - B A B int times = A * B; times A * B A B int max1 = Math.max(puls, minus); max1 Math.max(puls, minus) Math.max Math puls minus int max2 = Math.max(max1, times); max2 Math.max(max1, times) Math.max Math max1 times System.out.println(max2) System.out.println System.out System System.out max2 String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    }
} 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 puls = A + B;
        int minus = A - B;
        int times = A * B;
        int max1 = Math.max(puls, minus);
        int max2 = Math.max(max1, times);
        System.out.println(max2);
    }
}