#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",a
,b
,c
); return 0;
}
void scanfall(int*x,int*y,int*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 temp;
temp=*x;
*x=*y;
*y=temp;
return;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgc2NhbmZhbGwoaW50KngsaW50KnksaW50KnopOwoKdm9pZCBhc2NlbmQoaW50KngsaW50KnksaW50KnopOwoKdm9pZCBzd2FwKGludCp4LGludCp5KTsKaW50IG1haW4odm9pZCkgewoJaW50IGEsYixjOwoJc2NhbmZhbGwoJmEsJmIsJmMpOwoJYXNjZW5kKCZhLCZiLCZjKTsKCXByaW50ZigiYT0lZCxiPSVkLGM9JWQiLGEsYixjKTsKCXJldHVybiAwOwp9CnZvaWQgc2NhbmZhbGwoaW50KngsaW50KnksaW50KnopewoJc2NhbmYoIiVkIix4KTsKCXNjYW5mKCIlZCIseSk7CglzY2FuZigiJWQiLHopOwoJcmV0dXJuOwp9CnZvaWQgYXNjZW5kKGludCp4LGludCp5LGludCp6KXsKCWlmKCp4Pip5KQoJCXN3YXAoeCx5KTsKCQlpZigqeD4qeikKCQlzd2FwKHgseik7CgkJaWYoKnk+KnopCgkJc3dhcCh5LHopOwoJcmV0dXJuOwp9CnZvaWQgc3dhcChpbnQqeCxpbnQqeSl7CglpbnQgdGVtcDsKCXRlbXA9Kng7CgkqeD0qeTsKCSp5PXRlbXA7CglyZXR1cm47Cn0K