import java.io.PrintWriter;
import java.util.* ;

class Main {


    public static void main(String[] args)  {
        Scanner in = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        int A = in.nextInt();
        int B = in.nextInt();
        int max = Integer.MIN_VALUE;
        int sum = A + B;
        if(sum > max) {
            max = sum ;
        }
        int sub = A - B ;
        if(sub > max) {
            max = sub;
        }
        int mul = A * B ;
        if(mul > max) {
            max = mul ;
        }
        pw.println(max);
        pw.close();
        
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.* ; util.* java class Main {


    public static void main(String[] args)  {
        Scanner in = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        int A = in.nextInt();
        int B = in.nextInt();
        int max = Integer.MIN_VALUE;
        int sum = A + B;
        if(sum > max) {
            max = sum ;
        }
        int sub = A - B ;
        if(sub > max) {
            max = sub;
        }
        int mul = A * B ;
        if(mul > max) {
            max = mul ;
        }
        pw.println(max);
        pw.close();
        
    }
} Main public static void main(String[] args)  {
        Scanner in = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        int A = in.nextInt();
        int B = in.nextInt();
        int max = Integer.MIN_VALUE;
        int sum = A + B;
        if(sum > max) {
            max = sum ;
        }
        int sub = A - B ;
        if(sub > max) {
            max = sub;
        }
        int mul = A * B ;
        if(mul > max) {
            max = mul ;
        }
        pw.println(max);
        pw.close();
        
    } main {
        Scanner in = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        int A = in.nextInt();
        int B = in.nextInt();
        int max = Integer.MIN_VALUE;
        int sum = A + B;
        if(sum > max) {
            max = sum ;
        }
        int sub = A - B ;
        if(sub > max) {
            max = sub;
        }
        int mul = A * B ;
        if(mul > max) {
            max = mul ;
        }
        pw.println(max);
        pw.close();
        
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int sum = A + B; sum A + B A B if(sum > max) {
            max = sum ;
        } sum > max sum max {
            max = sum ;
        } max = sum max sum int sub = A - B ; sub A - B A B if(sub > max) {
            max = sub;
        } sub > max sub max {
            max = sub;
        } max = sub max sub int mul = A * B ; mul A * B A B if(mul > max) {
            max = mul ;
        } mul > max mul max {
            max = mul ;
        } max = mul max mul pw.println(max) pw.println pw max pw.close() pw.close pw String[] args args
import java.io.PrintWriter;
import java.util.* ;

class Main {


    public static void main(String[] args)  {
        Scanner in = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        int A = in.nextInt();
        int B = in.nextInt();
        int max = Integer.MIN_VALUE;
        int sum = A + B;
        if(sum > max) {
            max = sum ;
        }
        int sub = A - B ;
        if(sub > max) {
            max = sub;
        }
        int mul = A * B ;
        if(mul > max) {
            max = mul ;
        }
        pw.println(max);
        pw.close();
        
    }
}