#include
using namespace std;
template
class Compare
{
public:
Compare(type a,type b):a(a),b(b) {}
type max_is();
//{
// return a>b?a:b;
//}
type min_is();
private:
int a;
int b;
};
template
type Compare::min_is()
{
return a<b?a:b;
}
template
type Compare::max_is()
{
return a>b?a:b;
}
int main()
{
int x,y;
cin>>x>>y;
Compare c1(x,y);
cout<<c1.max_is()<<endl;
cout<<c1.min_is()<<endl;
return 0;
}