#include <bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
cin>>a>>b;
cout<<min(a,b)<<" "<<max(a,b);
return 0;
}
Var a,b:integer;
Begin
Write('Nhap a = ');readln(a);
Write('Nhap b = ');readln(b);
If a >= b then write(b,' ; ', a)
Else write(a,' ; ',b);
Readln;
End.