import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) final int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan final int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int sum = A + B; sum A + B A B int diff = A - B; diff A - B A B int product = A * B; product A * B A B if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        } sum >= diff sum diff {
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        } if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            } product >= sum product sum {
                System.out.println(product);
            } System.out.println(product) System.out.println System.out System System.out product {
                System.out.println(sum);
            } System.out.println(sum) System.out.println System.out System System.out sum {
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        } if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            } product >= diff product diff {
                System.out.println(product);
            } System.out.println(product) System.out.println System.out System System.out product {
                System.out.println(diff);
            } System.out.println(diff) System.out.println System.out System System.out diff scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    }
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final int A = scan.nextInt();
        final int B = scan.nextInt();
        int sum = A + B;
        int diff = A - B;
        int product = A * B;
        if(sum >= diff){
            if(product >= sum){
                System.out.println(product);
            }else{
                System.out.println(sum);
            }
        }else{
            if(product >= diff){
                System.out.println(product);
            }else{
                System.out.println(diff);
            }
        }

        scan.close();
    }
}