#include <stdio.h>
int main(void){
int a, b, c;
scanfall(&a,&b,&c);
printf("入力:a=%d, b=%d, c=%d\n",a
,b
,c
); ascend(&a,&b,&c);
printf("昇順:a=%d, b=%d, c=%d",a
,b
,c
);
return 0;
}
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 w;
w = *x;
*x = *y;
*y = w;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKXsKICAgIGludCBhLCBiLCBjOwoKICAgIHNjYW5mYWxsKCZhLCZiLCZjKTsKICAgIHByaW50Zigi5YWl5Yqb77yaYT0lZCwgYj0lZCwgYz0lZFxuIixhLGIsYyk7CiAgICBhc2NlbmQoJmEsJmIsJmMpOwogICAgcHJpbnRmKCLmmIfpoIbvvJphPSVkLCBiPSVkLCBjPSVkIixhLGIsYyk7CgogICAgcmV0dXJuIDA7Cn0KCnZvaWQgc2NhbmZhbGwoaW50ICp4LCBpbnQgKnksIGludCAqeil7CiAgICBzY2FuZigiJWQgJWQgJWQiLHgsIHksIHopOwp9Cgp2b2lkIGFzY2VuZChpbnQgKngsIGludCAqeSwgaW50ICp6KXsKICAgIGlmKCp4ID4gKnkpIHN3YXAoeCwgeSk7CiAgICBpZigqeSA+ICp6KSBzd2FwKHksIHopOwogICAgaWYoKnggPiAqeSkgc3dhcCh4LCB5KTsKfQoKdm9pZCBzd2FwKGludCAqeCwgaW50ICp5KXsKICAgIGludCB3OwoKICAgIHcgPSAqeDsKICAgICp4ID0gKnk7CiAgICAqeSA9IHc7Cn0=