#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
int aux = b;
b = a;
a = aux;
}
if (a > c) {
int aux = c;
c = a;
a = aux;
}
if (b > c) {
int aux = c;
c = b;
b = aux;
}
cout << a << " " << b << " " << c;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIGlmIChhID4gYikgewogICAgCWludCBhdXggPSBiOwogIAkJYiA9IGE7CiAgCQlhID0gYXV4OwogICAgfQogICAgaWYgKGEgPiBjKSB7CiAgICAJaW50IGF1eCA9IGM7CiAgCQljID0gYTsKICAJCWEgPSBhdXg7CiAgICB9CiAgICBpZiAoYiA+IGMpIHsKICAgIAlpbnQgYXV4ID0gYzsKICAJCWMgPSBiOwogIAkJYiA9IGF1eDsKICAgIH0KICAgIGNvdXQgPDwgYSA8PCAiICIgPDwgYiA8PCAiICIgPDwgYzsKICAgIHJldHVybiAwOwp9