#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+IGIgPj4gYzsKICAgIGlmIChhID4gYikgewogICAgICAgIGludCBhdXggPSBiOwogICAgICAgIGIgPSBhOwogICAgICAgIGEgPSBhdXg7CiAgICB9CiAgICBpZiAoYSA+IGMpIHsKICAgICAgICBpbnQgYXV4ID0gYzsKICAgICAgICBjID0gYTsKICAgICAgICBhID0gYXV4OwogICAgfQogICAgaWYgKGIgPiBjKSB7CiAgICAgICAgaW50IGF1eCA9IGM7CiAgICAgICAgYyA9IGI7CiAgICAgICAgYiA9IGF1eDsKICAgIH0KICAgIGNvdXQgPDwgYSA8PCAiICIgPDwgYiA8PCAiICIgPDwgYzsKICAgIHJldHVybiAwOwp9