#include<iostream>
using namespace std;
int main()
{
int*p1,*p2;
int a,b;
cin>>a>>b;
p1=&a;
p2=&b;
if(a<b)
{
int *p; //交换地址
p=p1;
p1=p2;
p2=p;
/*
int p; //交换值
p=*p1;
*p1=*p2;
*p2=p;
*/
}
printf("%d %d\n",a,b);
printf("max=%d,min=%d\n",*p1,*p2);
return 0;
}
using namespace std;
int main()
{
int*p1,*p2;
int a,b;
cin>>a>>b;
p1=&a;
p2=&b;
if(a<b)
{
int *p; //交换地址
p=p1;
p1=p2;
p2=p;
/*
int p; //交换值
p=*p1;
*p1=*p2;
*p2=p;
*/
}
printf("%d %d\n",a,b);
printf("max=%d,min=%d\n",*p1,*p2);
return 0;
}