//c++
#include <iostream>
using namespace std;
signed main() {
float a, b;
cin >> a >> b;
cout << a + b - max(a, b) << " " << max(a, b);
return 0;
}
//c++
#include <iostream>
using namespace std;
signed main() {
float a, b;
cin >> a >> b;
cout << a + b - max(a, b) << " " << max(a, b);
return 0;
}