#include <stdio.h>
void sort(int *c,int *d);
void swap(int *a,int *b);
int main() {
int x,y;
x=2;
y=5;
sort(&x,&y);
printf("%d,%d\n",x,y);
return 0;
}
void swap(int *a,int *b){
int w;
w=*a;
*a=*b;
*b=w;
}
void sort(int *c,int *d){
if(*c<*d){
swap(c,d);
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNvcnQoaW50ICpjLGludCAqZCk7CnZvaWQgc3dhcChpbnQgKmEsaW50ICpiKTsKCmludCBtYWluKCkgewoJaW50IHgseTsKCXg9MjsKCXk9NTsKCXNvcnQoJngsJnkpOwoJcHJpbnRmKCIlZCwlZFxuIix4LHkpOwoJcmV0dXJuIDA7Cn0KCnZvaWQgc3dhcChpbnQgKmEsaW50ICpiKXsKCWludCB3OwoJdz0qYTsKCSphPSpiOwoJKmI9dzsKfQoKdm9pZCBzb3J0KGludCAqYyxpbnQgKmQpewoJaWYoKmM8KmQpewoJCXN3YXAoYyxkKTsKfQp9CgkJCg==