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

public class Main {
	
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	}
	
}

 import java.util.*; util.* java import java.io.*; io.* java public class Main {
	
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	}
	
} Main public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(in.readLine()); st new StringTokenizer(in.readLine()) int i1 = Integer.parseInt(st.nextToken()) i1 Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st i2 = Integer.parseInt(st.nextToken()); i2 Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int p = i1 + i2 p i1 + i2 i1 i2 m = i1 * i2 m i1 * i2 i1 i2 s = i1 - i2; s i1 - i2 i1 i2 System.out.println(Math.max(Math.max(p, m), s)) System.out.println System.out System System.out Math.max(Math.max(p, m), s) Math.max Math Math.max(p, m) Math.max Math p m s String[] args args public class Main {
	
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	}
	
} public class Main {
	
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	}
	
} Main
import java.util.*;
import java.io.*;

public class Main {
	
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(in.readLine());
		int i1 = Integer.parseInt(st.nextToken()), i2 = Integer.parseInt(st.nextToken());
		int p = i1 + i2, m = i1 * i2, s = i1 - i2;
		System.out.println(Math.max(Math.max(p, m), s));
	
		
	}
	
}


