import java.util.*;

public class Main{
        public  static void main(String[] args){

                int r=calc();
                System.out.println(r);
        }
        static int calc(){
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        }
} import java.util.*; util.* java public class Main{
        public  static void main(String[] args){

                int r=calc();
                System.out.println(r);
        }
        static int calc(){
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        }
} Main public  static void main(String[] args){

                int r=calc();
                System.out.println(r);
        } main {

                int r=calc();
                System.out.println(r);
        } int r=calc(); r calc() calc System.out.println(r) System.out.println System.out System System.out r String[] args args static int calc(){
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        } calc {
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        } 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 rp; rp int rm; rm int rb; rb int r; r rp = A+B rp A+B A B rm = A-B rm A-B A B rb = A*B rb A*B A B if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                } rp >= rm && rp >= rb rp >= rm rp rm rp >= rb rp rb {
                        r = rp;
                } r = rp r rp if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                } rm >= rp && rm >= rb rm >= rp rm rp rm >= rb rm rb {
                        r = rm;
                } r = rm r rm {
                        r = rb;
                } r = rb r rb return r; r public class Main{
        public  static void main(String[] args){

                int r=calc();
                System.out.println(r);
        }
        static int calc(){
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        }
} public class Main{
        public  static void main(String[] args){

                int r=calc();
                System.out.println(r);
        }
        static int calc(){
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        }
} Main
import java.util.*;

public class Main{
        public  static void main(String[] args){

                int r=calc();
                System.out.println(r);
        }
        static int calc(){
                Scanner sc = new Scanner(System.in);
                int A=sc.nextInt();
                int B=sc.nextInt();
                int rp;
                int rm;
                int rb;
                int r;
                rp = A+B;
                rm = A-B;
                rb = A*B;
                if(rp >= rm && rp >= rb){
                        r = rp;
                }else if(rm >= rp && rm >= rb){
                        r = rm;
                }else{
                        r = rb;
                }
                return r;
        }
}