import 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 s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
}

} import java.util.*; util.* java public class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
}

} Main public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
} main {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
} 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 s=a+b; s a+b a b int m=a*b; m a*b a b int d=a-b; d a-b a b if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d); s>m && s>d s>m s m s>d s d System.out.println(s) System.out.println System.out System System.out s if(m>s && m>d)
System.out.println(m);
else
System.out.println(d); m>s && m>d m>s m s m>d m d System.out.println(m) System.out.println System.out System System.out m System.out.println(d) System.out.println System.out System System.out d 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 s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
}

} public class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
}

} Main
import 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 s=a+b;int m=a*b;int d=a-b;
if(s>m && s>d)
System.out.println(s);
else if(m>s && m>d)
System.out.println(m);
else
System.out.println(d);
}

}