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