#include<stdio.h>
void main(){
	int a,b,t;
	scanf("%d%d",&a,&b);
	if(a>b){
		t = a;
		a = b;
		b = t;
	} 
	printf("%d %d",a,b);
}
/**************************************************************
	Problem: 1419
	User: admin
	Language: C
	Result: Accepted
	Time:11 ms
	Memory:1144 kb
****************************************************************/