#include <iostream>
using namespace std;
int main()
{
    int x;
    int y;
    cin >> x >> y;
    // 将大的数放在x中,小的数放在y中
    if (x < y) {
        swap(x, y);
    }
    cout << x << endl;
    cout << y << endl;
    return 0;
}
#include <iostream>
using namespace std;
int main()
{
    int x;
    int y;
    cin >> x >> y;
    // 将大的数放在x中,小的数放在y中
    if (x < y) {
        swap(x, y);
    }
    cout << x << endl;
    cout << y << endl;
    return 0;
}