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 add=a+b;
		int lose=a-b;
		int x=a*b;
		int p=a/b;
		if(add>=lose&&add>=x&&add>=p){
			System.out.println(add);
		}else if(lose>=add&&lose>=x&&lose>=p){
			System.out.println(lose);	
		}else if(x>=add&&x>=lose&&x>=p){
			System.out.println(x);	
		}else{
			System.out.println(p);
		}
	}
}