import java.util.Scanner; 
public class Main {
    
    public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    
    public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    }
} Main public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    } main {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    } 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 plus = A + B; plus A + B A B int minus = A - B; minus A - B A B int multiple = A * B; multiple A * B A B if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        } plus >= minus && plus >= multiple plus >= minus plus minus plus >= multiple plus multiple {
           System.out.println(plus); 
        } System.out.println(plus) System.out.println System.out System System.out plus if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        } minus >= plus && minus >= multiple minus >= plus minus plus minus >= multiple minus multiple {
            System.out.println(minus);
        } System.out.println(minus) System.out.println System.out System System.out minus {
            System.out.println(multiple);
        } System.out.println(multiple) System.out.println System.out System System.out multiple sc.close() sc.close sc String [] args args public class Main {
    
    public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    }
} public class Main {
    
    public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    }
} Main
import java.util.Scanner; 
public class Main {
    
    public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus >= minus && plus >= multiple){
           System.out.println(plus); 
        } else if (minus >= plus && minus >= multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    }
}