
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	} main {
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] nyu=sc.nextLine().split(" "); nyu sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int num=Integer.parseInt(nyu[0]); num Integer.parseInt(nyu[0]) Integer.parseInt Integer nyu[0] nyu 0 int numnext=Integer.parseInt(nyu[1]); numnext Integer.parseInt(nyu[1]) Integer.parseInt Integer nyu[1] nyu 1 int[] data=new int[3]; data new int[3] 3 data[0]=num+numnext data[0] data 0 num+numnext num numnext data[1]=num * numnext data[1] data 1 num * numnext num numnext data[2]=num - numnext data[2] data 2 num - numnext num numnext Arrays.sort(data) Arrays.sort Arrays data int count=0; count 0 System.out.println(data[2]) System.out.println System.out System System.out data[2] data 2 String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	}
} Main

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();


int num=Integer.parseInt(nyu[0]);
int numnext=Integer.parseInt(nyu[1]);

int[] data=new int[3];
data[0]=num+numnext;
data[1]=num * numnext;
data[2]=num - numnext;
Arrays.sort(data);
//int num2=Integer.parseInt(sn[1]);

int count=0;





System.out.println(data[2]);

//System.out.println(a/b);


	}
}