import java.util.*;
public class Main{
	
	public static void main(String[] args){
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    }
} import java.util.*; util.* java public class Main{
	
	public static void main(String[] args){
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    }
} Main public static void main(String[] args){
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    } main {
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int A = 0; A 0 int B = 0; B 0 int x = 0; x 0 int y = 0; y 0 int z = 0; z 0 int max = 0; max 0 try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        } catch(Exception e){
            //do nothing
            return;
        } Exception e {
            //do nothing
            return;
        } return; {
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        } String str = sn.nextLine(); str sn.nextLine() sn.nextLine sn String[] strlist = str.split(" ",0); strlist str.split(" ",0) str.split str " " 0 A = Integer.parseInt(strlist[0]) A Integer.parseInt(strlist[0]) Integer.parseInt Integer strlist[0] strlist 0 B = Integer.parseInt(strlist[1]) B Integer.parseInt(strlist[1]) Integer.parseInt Integer strlist[1] strlist 1 sn.close() sn.close sn if(A<-100 || 100< B){
                return;
            } A<-100 || 100< B A<-100 A -100 100 100< B 100 B {
                return;
            } return; x = A + B x A + B A B y = A - B y A - B A B z = A * B z A * B A B max = Math.max(x,y) max Math.max(x,y) Math.max Math x y max = Math.max(max,z) max Math.max(max,z) Math.max Math max z System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main{
	
	public static void main(String[] args){
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    }
} public class Main{
	
	public static void main(String[] args){
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    }
} Main
import java.util.*;
public class Main{
	
	public static void main(String[] args){
        Scanner sn = new Scanner(System.in);
		int A = 0;
        int B = 0;
        int x = 0;
        int y = 0;
        int z = 0;
        int max = 0;

        try{
            String str = sn.nextLine();
            String[] strlist = str.split(" ",0);
            A = Integer.parseInt(strlist[0]);
            B = Integer.parseInt(strlist[1]);
            sn.close();
            if(A<-100 || 100< B){
                return;
            }
            x = A + B;
            y = A - B;
            z = A * B;
            max = Math.max(x,y);
            max = Math.max(max,z);
            System.out.println(max);
        }catch(Exception e){
            //do nothing
            return;
        }
    }
}