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