#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;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIGlmIChhIDw9IGIgJiYgYiA8PSBjKSB7CiAgICAgICAgY291dCA8PCBhIDw8ICIgIiA8PCBiIDw8ICIgIiA8PCBjIDw8ICJcbiI7CiAgICB9IGVsc2UgaWYgKGEgPD0gYyAmJiBjIDw9IGIpIHsKICAgICAgICBjb3V0IDw8IGEgPDwgIiAiIDw8IGMgPDwgIiAiIDw8IGIgPDwgIlxuIjsKICAgIH0gZWxzZSBpZiAoYiA8PSBhICYmIGEgPD0gYykgewogICAgICAgIGNvdXQgPDwgYiA8PCAiICIgPDwgYSA8PCAiICIgPDwgYyA8PCAiXG4iOwogICAgfSBlbHNlIGlmIChiIDw9IGMgJiYgYyA8PSBhKSB7CiAgICAgICAgY291dCA8PCBiIDw8ICIgIiA8PCBjIDw8ICIgIiA8PCBhIDw8ICJcbiI7CiAgICB9IGVsc2UgaWYgKGMgPD0gYSAmJiBhIDw9IGIpIHsKICAgICAgICBjb3V0IDw8IGMgPDwgIiAiIDw8IGEgPDwgIiAiIDw8IGIgPDwgIlxuIjsKICAgIH0gZWxzZSB7CiAgICAgICAgY291dCA8PCBjIDw8ICIgIiA8PCBiIDw8ICIgIiA8PCBhOwogICAgfQogICAgcmV0dXJuIDA7Cn0=