include<stdio.h>

main()
{int x,y,t;
scanf("%d%d",&x,&y);
if(x<y)
{t=x;
x=y;
y=t;}
printf("%d\n%d",x,y);}