#include <stdio.h>
void cal (int x, int y, int *sum, int *diff, int *mul, int *mod);
int main(void) {
int x, y;
int 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;
if(*diff<0){
*diff = y-x;
}
*mul = x*y;
*mod = x%y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbCAoaW50IHgsIGludCB5LCBpbnQgKnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpOwoKaW50IG1haW4odm9pZCkgewoJaW50IHgsIHk7CglzY2FuZigiJWQiICwmeCk7CglzY2FuZigiJWQiICwmeSk7CglpbnQgc3VtLCBkaWZmLCBtdWwsIG1vZDsKICAgIGNhbCAoeCwgeSwgJnN1bSwgJmRpZmYsICZtdWwsICZtb2QpOwoJcHJpbnRmKCJzdW0gPSAlZFxuIiAsc3VtKTsKCXByaW50ZigiZGlmZiA9ICVkXG4iICxkaWZmKTsKCXByaW50ZigibXVsID0gJWRcbiIgLG11bCk7CglwcmludGYoIm1vZCA9ICVkXG4iICxtb2QpOwoJcmV0dXJuIDA7Cn0Kdm9pZCBjYWwoaW50IHgsIGludCB5LCBpbnQgKnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpewoJKnN1bSA9IHgreTsKCSpkaWZmID0geC15OwoJaWYoKmRpZmY8MCl7CgkJKmRpZmYgPSB5LXg7Cgl9CgkqbXVsID0geCp5OwoJKm1vZCA9IHgleTsKCn0=