import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next()); 
        scan.close();
        int sum = A + B;
        int minus = A - B;
        int multi = A * B;

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

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

        if (sum > minus) {
            if (sum > multi) {
                System.out.println(sum);
            } else {
                System.out.println(multi);
            }
        } else {
            if (minus > multi) {
                System.out.println(minus);
            } else {
                System.out.println(multi);
            }
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next()); 
        scan.close();
        int sum = A + B;
        int minus = A - B;
        int multi = A * B;

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

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

        if (sum > minus) {
            if (sum > multi) {
                System.out.println(sum);
            } else {
                System.out.println(multi);
            }
        } else {
            if (minus > multi) {
                System.out.println(minus);
            } else {
                System.out.println(multi);
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next()); 
        scan.close();
        int sum = A + B;
        int minus = A - B;
        int multi = A * B;

        if (sum > minus) {
            if (sum > multi) {
                System.out.println(sum);
            } else {
                System.out.println(multi);
            }
        } else {
            if (minus > multi) {
                System.out.println(minus);
            } else {
                System.out.println(multi);
            }
        }
    }
}