#include <stdio.h>
void swap(int x,int *y);
int main(void) {
int a=1;
int b=2;
swap(a,&b);
return 0;
}
void swap(int x,int *y){
int temp;
temp=x;
x=*y;
*y=temp;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgc3dhcChpbnQgeCxpbnQgKnkpOwppbnQgbWFpbih2b2lkKSB7CglpbnQgYT0xOwoJaW50IGI9MjsKCXN3YXAoYSwmYik7CglwcmludGYoIiVkJWQiLGEsYik7CglyZXR1cm4gMDsKfQp2b2lkIHN3YXAoaW50IHgsaW50ICp5KXsKCWludCB0ZW1wOwoJdGVtcD14OwoJeD0qeTsKCSp5PXRlbXA7Cn0=