#include <stdio.h>
void cal(int x,int y,int *sum,int *diff, int *mul,int *mod){
*sum=x+y;
if(x>y) *diff=x-y;
else *diff=y-x;
*mul=x*y;
if(y!=0)*mod=x/y;
else *mod=0;
return 0;
}
int main(void) {
int x,y,sum,diff,mul,mod;
cal(x,y,&sum,&diff,&mul,&mod);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCxpbnQgeSxpbnQgKnN1bSxpbnQgKmRpZmYsIGludCAqbXVsLGludCAqbW9kKXsKCSpzdW09eCt5OwoJaWYoeD55KSAqZGlmZj14LXk7CgllbHNlICAqZGlmZj15LXg7CgkqbXVsPXgqeTsKCWlmKHkhPTApKm1vZD14L3k7CgllbHNlICptb2Q9MDsKCQoJcmV0dXJuIDA7Cn0KCmludCBtYWluKHZvaWQpIHsKCWludCB4LHksc3VtLGRpZmYsbXVsLG1vZDsKCQoJc2NhbmYoIiVkICVkIiwmeCwmeSk7CgkKCWNhbCh4LHksJnN1bSwmZGlmZiwmbXVsLCZtb2QpOwoJCglwcmludGYoIuWSjOOBryVkXG4iLHN1bSk7CglwcmludGYoIuW3ruOBryVkXG4iLGRpZmYpOwoJcHJpbnRmKCLnqY3jga8lZFxuIixtdWwpOwoJcHJpbnRmKCLllYbjga8lZFxuIixtb2QpOwoJCglyZXR1cm4gMDsKfQo=