/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	} main {
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int a = x+y; a x+y x y int b = x-y; b x-y x y int c = x*y; c x*y x y int ans = Math.max(a,Math.max(b,c)); ans Math.max(a,Math.max(b,c)) Math.max Math a Math.max(b,c) Math.max Math b c System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	}
} Main
/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int y = sc.nextInt();
		
		int a = x+y;
		int b = x-y;
		int c = x*y;
		
		int ans = Math.max(a,Math.max(b,c));
		System.out.println(ans);
	}
}