import java.util.*;
import java.lang.*;
import java.io.*;
 public class Main{
   public static void main(String[]args){
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   }
 } import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main{
   public static void main(String[]args){
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   }
 } Main public static void main(String[]args){
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   } main {
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int c = a+b; c a+b a b int d = a-b; d a-b a b int e =a*b; e a*b a b System.out.println(Math.max(c,Math.max(d,e))) System.out.println System.out System System.out Math.max(c,Math.max(d,e)) Math.max Math c Math.max(d,e) Math.max Math d e String[]args args public class Main{
   public static void main(String[]args){
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   }
 } public class Main{
   public static void main(String[]args){
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   }
 } Main
import java.util.*;
import java.lang.*;
import java.io.*;
 public class Main{
   public static void main(String[]args){
     Scanner s = new Scanner(System.in);
     int a = s.nextInt();
     int b = s.nextInt();
     int c = a+b;
     int d = a-b;
     int e =a*b;
     System.out.println(Math.max(c,Math.max(d,e)));
   }
 }