#include <iostream>
using namespace std;
int main()
{
int a,b,c,d,e,f,g;
cin >>a>>b;
if ( a==b )
cout << a+b;
}
if ( a>b )
cout << a/2<< " " ;
cout << b*b;
if ( a<b )
cout << a*a<< " " ;
cout << b/2;
#include <iostream>
using namespace std;
int main()
{
int a,b,c,d,e,f,g;
cin >>a>>b;
if ( a==b )
{
cout << a+b;
}
if ( a>b )
{
cout << a/2<< " " ;
cout << b*b;
}
if ( a<b )
{
cout << a*a<< " " ;
cout << b/2;
}
}