
import java.util.Scanner;


public class Main {

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

    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=a*b;
        int d=a+b;
        int e=a-b;
        if(c>=d && c>=e)
        {
            System.out.println(c);
        }
        else if(d>=c && d>=e)
        {
            System.out.println(d);
        }
        else
        {
            System.out.println(e);
        }
    }
} Main

import java.util.Scanner;


public class Main {

    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=a*b;
        int d=a+b;
        int e=a-b;
        if(c>=d && c>=e)
        {
            System.out.println(c);
        }
        else if(d>=c && d>=e)
        {
            System.out.println(d);
        }
        else
        {
            System.out.println(e);
        }
    }
}
