#include <stdio.h>
void sort(int *x,int *y);
void swap(int *x,int *y);
int main(void) {
// your code goes here
int x=4, y=1;
sort(&x,&y);
return 0;
}
void sort(int *x,int *y){
if(*x<*y)
swap(x,y);
}
void swap(int *x,int *y){
int w;
w=*x;
*x=*y;
*y=w;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgc29ydChpbnQgKngsaW50ICp5KTsKdm9pZCBzd2FwKGludCAqeCxpbnQgKnkpOwppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgeD00LCB5PTE7Cglzb3J0KCZ4LCZ5KTsKCXByaW50ZigiJWQsJWQiLHgseSk7CglyZXR1cm4gMDsKfQp2b2lkIHNvcnQoaW50ICp4LGludCAqeSl7CglpZigqeDwqeSkKCXN3YXAoeCx5KTsKfQp2b2lkIHN3YXAoaW50ICp4LGludCAqeSl7CglpbnQgdzsKCXc9Kng7CgkqeD0qeTsKCSp5PXc7Cgp9