#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a <= b && b <= c) {
cout << a << " " << b << " " << c << "\n";
} else if (a <= c && c <= b) {
cout << a << " " << c << " " << b << "\n";
} else if (b <= a && a <= c) {
cout << b << " " << a << " " << c << "\n";
} else if (b <= c && c <= a) {
cout << b << " " << c << " " << a << "\n";
} else if (c <= a && a <= b) {
cout << c << " " << a << " " << b << "\n";
} else {
cout << c << " " << b << " " << a << "\n";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKICAgIGludCBhLCBiLCBjOwogICAgY2luID4+IGEgPj4gYiA+PiBjOwogICAgaWYgKGEgPD0gYiAmJiBiIDw9IGMpIHsKICAgICAgICBjb3V0IDw8IGEgPDwgIiAiIDw8IGIgPDwgIiAiIDw8IGMgPDwgIlxuIjsKICAgIH0gZWxzZSBpZiAoYSA8PSBjICYmIGMgPD0gYikgewogICAgICAgIGNvdXQgPDwgYSA8PCAiICIgPDwgYyA8PCAiICIgPDwgYiA8PCAiXG4iOwogICAgfSBlbHNlIGlmIChiIDw9IGEgJiYgYSA8PSBjKSB7CiAgICAgICAgY291dCA8PCBiIDw8ICIgIiA8PCBhIDw8ICIgIiA8PCBjIDw8ICJcbiI7CiAgICB9IGVsc2UgaWYgKGIgPD0gYyAmJiBjIDw9IGEpIHsKICAgICAgICBjb3V0IDw8IGIgPDwgIiAiIDw8IGMgPDwgIiAiIDw8IGEgPDwgIlxuIjsKICAgIH0gZWxzZSBpZiAoYyA8PSBhICYmIGEgPD0gYikgewogICAgICAgIGNvdXQgPDwgYyA8PCAiICIgPDwgYSA8PCAiICIgPDwgYiA8PCAiXG4iOwogICAgfSBlbHNlIHsKICAgICAgICBjb3V0IDw8IGMgPDwgIiAiIDw8IGIgPDwgIiAiIDw8IGEgPDwgIlxuIjsKICAgIH0KCiAgICByZXR1cm4gMDsKfQ==