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 tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int tasu = a + b; tasu a + b a b int kakeru = a * b; kakeru a * b a b int hiku = a - b; hiku a - b a b if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        } tasu > hiku tasu hiku {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        } if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            } tasu > kakeru tasu kakeru {
                System.out.println(tasu);
            } System.out.println(tasu) System.out.println System.out System System.out tasu {
                System.out.println(kakeru);
            } System.out.println(kakeru) System.out.println System.out System System.out kakeru {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        } if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            } hiku > kakeru hiku kakeru {
                System.out.println(hiku);
            } System.out.println(hiku) System.out.println System.out System System.out hiku {
                System.out.println(kakeru);
            } System.out.println(kakeru) System.out.println System.out System System.out kakeru String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    }
} Main
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 tasu = a + b;
        int kakeru = a * b;
        int hiku = a - b;
        if(tasu > hiku) {
            if(tasu > kakeru) {
                System.out.println(tasu);
            }else {
                System.out.println(kakeru);
            }
        }else {
            if(hiku > kakeru) {
                System.out.println(hiku);
            }else {
                System.out.println(kakeru);
            }
        }
    }
}