
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.*;
public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    }

}


 import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.*; math.* java public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    }

} Main public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    } main {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    } InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader reader = new BufferedReader(is); reader new BufferedReader(is) String s = reader.readLine(); s reader.readLine() reader.readLine reader String arr[]=s.split(" "); arr s.split(" ") s.split s " " int a = Integer.valueOf(arr[0]); a Integer.valueOf(arr[0]) Integer.valueOf Integer arr[0] arr 0 int b = Integer.valueOf(arr[1]); b Integer.valueOf(arr[1]) Integer.valueOf Integer arr[1] arr 1 System.out.println(Math.max(Math.max(a+b,a-b),a*b)) System.out.println System.out System System.out Math.max(Math.max(a+b,a-b),a*b) Math.max Math Math.max(a+b,a-b) Math.max Math a+b a b a-b a b a*b a b String[] args args public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    }

} public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    }

} Main

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.*;
public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        String s = reader.readLine();
        
        String arr[]=s.split(" ");
        
        int a = Integer.valueOf(arr[0]);
        int b = Integer.valueOf(arr[1]);
        
        System.out.println(Math.max(Math.max(a+b,a-b),a*b));
        
        
    }

}



