#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a > b) {
int aux = b;
b = a;
a = aux;
}
cout << a <<" "<< b;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgaW50IGEsIGI7CiAgY2luID4+IGEgPj4gYjsKICBpZiAoYSA+IGIpIHsKICAJaW50IGF1eCA9IGI7CiAgCWIgPSBhOwogIAlhID0gYXV4OwogIH0KICBjb3V0IDw8IGEgPDwiICI8PCBiOwogIHJldHVybiAwOwp9