#include
int main()
{
int x,y;
scanf("%d",&x);
scanf("%d",&y);
if(y>x){
printf("%d\t%d\n",y,x);
}else {
printf("%d\t%d\n",x,y);
}
return 0;
}
#include
int main()
{
int x,y;
scanf("%d%d",&x,&y);
if(x < y)
printf("%d %d\n",y,x);
else
printf("%d %d\n",x,y);
}