#include <iostream>
using namespace std;
int main ()
{
    int a; int b;
    cin>>a;
    cin>>b;
    if (a+b>a-b and a+b >a*b){
        cout <<a+b<<endl;
        cout << "The largest number among A+B = "<<a+b<<",A-B= "<<a-b<<",AxB= "<<a*b<<"is"<<a+b;
    } else if (a-b>a+b and a-b >a*b){
        cout<<a-b<<endl;
        cout << "The largest number among A+B = "<<a+b<<",A-B= "<<a-b<<",AxB= "<<a*b<<"is"<<a-b;
    }else{
        cout<< a*b<<endl;
        cout << "The largest number among A+B = "<<a+b<<",A-B= "<<a-b<<",AxB= "<<a*b<<"is"<<a*b;
    }
    return 0;
}