import java.util.*;
import java.io.*;

public class Main
{
  public static void main(String[] args) throws IOException
  {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  }
  public static int maximum(int a,int b)
  {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
  public static void main(String[] args) throws IOException
  {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  }
  public static int maximum(int a,int b)
  {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  }
} Main public static void main(String[] args) throws IOException
  {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  } main {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer tokenizer1 = new StringTokenizer(br.readLine()); tokenizer1 new StringTokenizer(br.readLine()) int a = Integer.parseInt(tokenizer1.nextToken()); a Integer.parseInt(tokenizer1.nextToken()) Integer.parseInt Integer tokenizer1.nextToken() tokenizer1.nextToken tokenizer1 int b = Integer.parseInt(tokenizer1.nextToken()); b Integer.parseInt(tokenizer1.nextToken()) Integer.parseInt Integer tokenizer1.nextToken() tokenizer1.nextToken tokenizer1 int ans = maximum(a,b); ans maximum(a,b) maximum a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public static int maximum(int a,int b)
  {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  } maximum {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  } 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 ans1 = Math.max(x,y); ans1 Math.max(x,y) Math.max Math x y int ans = Math.max(ans1,z); ans Math.max(ans1,z) Math.max Math ans1 z return ans; ans int a a int b b public class Main
{
  public static void main(String[] args) throws IOException
  {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  }
  public static int maximum(int a,int b)
  {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  }
} public class Main
{
  public static void main(String[] args) throws IOException
  {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  }
  public static int maximum(int a,int b)
  {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  }
} Main
import java.util.*;
import java.io.*;

public class Main
{
  public static void main(String[] args) throws IOException
  {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     StringTokenizer tokenizer1 = new StringTokenizer(br.readLine());
     int a = Integer.parseInt(tokenizer1.nextToken());
     int b = Integer.parseInt(tokenizer1.nextToken());
     int ans = maximum(a,b);
     System.out.println(ans);
  }
  public static int maximum(int a,int b)
  {
    int x = a + b;
    int y = a - b;
    int z = a * b;
    
    int ans1 = Math.max(x,y);
    int ans = Math.max(ans1,z);
    return ans;
  }
}
