import java.util.Scanner;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 }
} import java.util.Scanner; Scanner java.util public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 } main {
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 } 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 w = A+B; w A+B A B int s = A-B; s A-B A B int seki = A*B; seki A*B A B int M1 = Math.max(w,s); M1 Math.max(w,s) Math.max Math w s int M = Math.max(M1,seki); M Math.max(M1,seki) Math.max Math M1 seki System.out.println(M) System.out.println System.out System System.out M String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 }
} Main
import java.util.Scanner;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   int w = A+B;
   int s = A-B;
   int seki = A*B;
   
   int M1 = Math.max(w,s);
   int M = Math.max(M1,seki);

   System.out.println(M);
 }
}