#include <stdio.h>
void scanfall(int *x, int *y, int *z);
void ascend(int *x, int *y, int *z);
void swap(int *x, int *y);
int main(void) {
int a, b, c;
scanfall(&a, &b, &c);
ascend(&a, &b, &c);
printf("%d %d %d\n", a
, b
, c
); }
void scanfall(int *x, int *y, int *z) {
scanf("%d %d %d", x
, y
, z
); }
void ascend(int *x, int *y, int *z) {
if (*x > *y) {
swap(x, y);
}
if (*y > *z) {
swap(y, z);
}
if (*x > *y) {
swap(x, y);
}
}
void swap(int *x, int *y) {
int temp = *x;
*x = *y;
*y = temp;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNjYW5mYWxsKGludCAqeCwgaW50ICp5LCBpbnQgKnopOwp2b2lkIGFzY2VuZChpbnQgKngsIGludCAqeSwgaW50ICp6KTsKdm9pZCBzd2FwKGludCAqeCwgaW50ICp5KTsKCmludCBtYWluKHZvaWQpIHsKICAgIGludCBhLCBiLCBjOwoKICAgIHNjYW5mYWxsKCZhLCAmYiwgJmMpOwogICAgYXNjZW5kKCZhLCAmYiwgJmMpOwoKICAgIHByaW50ZigiJWQgJWQgJWRcbiIsIGEsIGIsIGMpOwp9Cgp2b2lkIHNjYW5mYWxsKGludCAqeCwgaW50ICp5LCBpbnQgKnopIHsKICAgIHByaW50ZigiM+OBpOOBruaVtOaVsOOCkuWFpeWKm+OBl+OBpuOBj+OBoOOBleOBhDogIik7CiAgICBzY2FuZigiJWQgJWQgJWQiLCB4LCB5LCB6KTsKfQoKdm9pZCBhc2NlbmQoaW50ICp4LCBpbnQgKnksIGludCAqeikgewogICAgaWYgKCp4ID4gKnkpIHsKICAgICAgICBzd2FwKHgsIHkpOwogICAgfQogICAgaWYgKCp5ID4gKnopIHsKICAgICAgICBzd2FwKHksIHopOwogICAgfQogICAgaWYgKCp4ID4gKnkpIHsKICAgICAgICBzd2FwKHgsIHkpOwogICAgfQp9Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpIHsKICAgIGludCB0ZW1wID0gKng7CiAgICAqeCA9ICp5OwogICAgKnkgPSB0ZW1wOwp9Cg==