import java.util.Scanner;

  class Main{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int X = a+b;
      int Y = a-b;
      int Z = a*b;
      int[] S = {X,Y,Z};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    }
  } import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int X = a+b;
      int Y = a-b;
      int Z = a*b;
      int[] S = {X,Y,Z};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    }
  } Main public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int X = a+b;
      int Y = a-b;
      int Z = a*b;
      int[] S = {X,Y,Z};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    } main {
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int X = a+b;
      int Y = a-b;
      int Z = a*b;
      int[] S = {X,Y,Z};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int X = a+b; X a+b a b int Y = a-b; Y a-b a b int Z = a*b; Z a*b a b int[] S = {X,Y,Z}; S {X,Y,Z} X Y Z int M = S[0]; M S[0] S 0 for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      } int i=0; int i=0; i 0 i<=2 i 2 i++ i++ i {
        if(M <= S[i]){
          M = S[i];
        }
      } {
        if(M <= S[i]){
          M = S[i];
        }
      } if(M <= S[i]){
          M = S[i];
        } M <= S[i] M S[i] S i {
          M = S[i];
        } M = S[i] M S[i] S i System.out.println(M) System.out.println System.out System System.out M String[] args args
import java.util.Scanner;

  class Main{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int a = stdIn.nextInt();
      int b = stdIn.nextInt();
      int X = a+b;
      int Y = a-b;
      int Z = a*b;
      int[] S = {X,Y,Z};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    }
  }