import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    } 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 sum = A + B; sum A + B A B int multi = A * B; multi A * B A B int minus = A - B; minus A - B A B if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        } sum >= multi && sum >= minus sum >= multi sum multi sum >= minus sum minus {
            System.out.println(sum);
        } System.out.println(sum) System.out.println System.out System System.out sum if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        } multi > sum && multi > minus multi > sum multi sum multi > minus multi minus {
            System.out.println(multi);
        } System.out.println(multi) System.out.println System.out System System.out multi if (minus > multi && minus > sum) {
            System.out.println(minus);
        } minus > multi && minus > sum minus > multi minus multi minus > sum minus sum {
            System.out.println(minus);
        } System.out.println(minus) System.out.println System.out System System.out minus String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int sum = A + B;
        int multi = A * B;
        int minus = A - B;
        if (sum >= multi && sum >= minus) {
            System.out.println(sum);
        } else if (multi > sum && multi > minus) {
            System.out.println(multi);
        } else if (minus > multi && minus > sum) {
            System.out.println(minus);
        }

    }
}
