import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    } main {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int m = A + B; m A + B A B if(m < (A - B)){
            m = A - B;
        } m < (A - B) m (A - B) A B {
            m = A - B;
        } m = A - B m A - B A B if(m < (A * B)){
            m = A * B;
        } m < (A * B) m (A * B) A B {
            m = A * B;
        } m = A * B m A * B A B System.out.println(m) System.out.println System.out System System.out m String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int m = A + B;
        if(m < (A - B)){
            m = A - B;
        }
        if(m < (A * B)){
            m = A * B;
        }
        System.out.println(m);
    }
}
