#include <iostream>
#include <algorithm>
using namespace std;
int main() {
unsigned int h, a, b;
cin >> h >> a >> b;
cout << max(a, b) << " " << min(a, b);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl1bnNpZ25lZCBpbnQgaCwgYSwgYjsKCQoJY2luID4+IGggPj4gYSA+PiBiOwoJCgljb3V0IDw8IG1heChhLCBiKSA8PCAiICIgPDwgbWluKGEsIGIpOwoJcmV0dXJuIDA7Cn0=