import java.util.Scanner;
class Main {
	public static void main(String args[]){
    Scanner scan = new Scanner(System.in);

    int a = scan.nextInt();
    int b = scan.nextInt();

    int max = a + b;

    if(max<a-b) {
    	max=a-b;
    }

    if(max<a*b) {
    	max=a*b;
    }
    System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]){
    Scanner scan = new Scanner(System.in);

    int a = scan.nextInt();
    int b = scan.nextInt();

    int max = a + b;

    if(max<a-b) {
    	max=a-b;
    }

    if(max<a*b) {
    	max=a*b;
    }
    System.out.println(max);
	}
} Main public static void main(String args[]){
    Scanner scan = new Scanner(System.in);

    int a = scan.nextInt();
    int b = scan.nextInt();

    int max = a + b;

    if(max<a-b) {
    	max=a-b;
    }

    if(max<a*b) {
    	max=a*b;
    }
    System.out.println(max);
	} main {
    Scanner scan = new Scanner(System.in);

    int a = scan.nextInt();
    int b = scan.nextInt();

    int max = a + b;

    if(max<a-b) {
    	max=a-b;
    }

    if(max<a*b) {
    	max=a*b;
    }
    System.out.println(max);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int max = a + b; max a + b a b if(max<a-b) {
    	max=a-b;
    } max<a-b max a-b a b {
    	max=a-b;
    } max=a-b max a-b a b if(max<a*b) {
    	max=a*b;
    } max<a*b max a*b a b {
    	max=a*b;
    } max=a*b max a*b a b System.out.println(max) System.out.println System.out System System.out max String args[] args
import java.util.Scanner;
class Main {
	public static void main(String args[]){
    Scanner scan = new Scanner(System.in);

    int a = scan.nextInt();
    int b = scan.nextInt();

    int max = a + b;

    if(max<a-b) {
    	max=a-b;
    }

    if(max<a*b) {
    	max=a*b;
    }
    System.out.println(max);
	}
}