import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    }
} Main public static void main(String[] args) throws Exception {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    } main {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N1 = sc.nextInt(); N1 sc.nextInt() sc.nextInt sc int N2 = sc.nextInt(); N2 sc.nextInt() sc.nextInt sc System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2))) System.out.println System.out System System.out Math.max(N1+N2,Math.max(N1-N2,N1*N2)) Math.max Math N1+N2 N1 N2 Math.max(N1-N2,N1*N2) Math.max Math N1-N2 N1 N2 N1*N2 N1 N2 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    }
} public class Main {
    public static void main(String[] args) throws Exception {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      	Scanner sc = new Scanner(System.in);
      	int N1 = sc.nextInt();
      	int N2 = sc.nextInt();      
        System.out.println(Math.max(N1+N2,Math.max(N1-N2,N1*N2)));
    }
}
