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