#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a < b) {
cout << a << " " << b;
} else {
cout << b << " " << a;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYjsKICAgIGNpbiA+PiBhID4+IGI7CiAgICBpZiAoYSA8IGIpIHsKICAgICAgICBjb3V0IDw8IGEgPDwgIiAiIDw8IGI7CiAgICB9IGVsc2UgewogICAgICAgIGNvdXQgPDwgYiA8PCAiICIgPDwgYTsKICAgIH0KICAgIHJldHVybiAwOwp9