#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("a=%d, b=%d, c=%d\n",a
, b
, c
); return 0;
}
void scanfall(int *x, int *y, int *z){
printf("a=%d, b=%d, c=%d\n",*x
, *y
, *z
); return;
}
void ascend(int *x, int *y, int *z){
if(*x>*y)swap(x, y);
if(*x>*z)swap(x, z);
if(*y>*z)swap(y, z);
return;
}
void swap(int*x, int*y){
int n=*x;
*x=*y;
*y=n;
return;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNjYW5mYWxsKGludCAqeCwgaW50ICp5LCBpbnQgKnopOwp2b2lkIGFzY2VuZChpbnQgKngsIGludCAqeSwgaW50ICp6KTsKdm9pZCBzd2FwKGludCp4LCBpbnQqeSk7CgoKaW50IG1haW4odm9pZCkgewoJaW50IGEsIGIsIGM7CglzY2FuZmFsbCgmYSwgJmIsICZjKTsKCWFzY2VuZCgmYSwgJmIsICZjKTsKCXByaW50ZigiYT0lZCwgYj0lZCwgYz0lZFxuIixhLCBiLCBjKTsKCXJldHVybiAwOwp9Cgp2b2lkIHNjYW5mYWxsKGludCAqeCwgaW50ICp5LCBpbnQgKnopewoJc2NhbmYoIiVkIiwmKngpOwoJc2NhbmYoIiVkIiwmKnkpOwoJc2NhbmYoIiVkIiwmKnopOwoJcHJpbnRmKCJhPSVkLCBiPSVkLCBjPSVkXG4iLCp4LCAqeSwgKnopOwoJcmV0dXJuOwp9CnZvaWQgYXNjZW5kKGludCAqeCwgaW50ICp5LCBpbnQgKnopewoJaWYoKng+Knkpc3dhcCh4LCB5KTsKCWlmKCp4Pip6KXN3YXAoeCwgeik7CglpZigqeT4qeilzd2FwKHksIHopOwoJcmV0dXJuOwp9CnZvaWQgc3dhcChpbnQqeCwgaW50KnkpewoJaW50IG49Kng7CgkqeD0qeTsgCgkqeT1uOwoJcmV0dXJuOwp9