#include using namespace std; int main() { int x, y, z; cin >> x >> y >> z; if (abs(y - x) > abs(z - x)) cout << z << " " << y << endl; else cout << y << " " << z << endl; return 0; }