#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;
if (x > y)
*diff = x - y;
else
*diff = y - x;
*mul = x * y;
*mod = x / y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksICBpbnQgKnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpOwoKaW50IG1haW4odm9pZCkgewoJaW50IHgseSxzdW0sZGlmZixtdWwsbW9kOwoJc2NhbmYoIiVkIiwmeCk7CglwcmludGYoIng6JWRcbiIseCk7CglzY2FuZigiJWQiLCZ5KTsKCXByaW50ZigieTolZFxuIix5KTsKCQoJCgljYWwoeCx5LCZzdW0sJmRpZmYsJm11bCwmbW9kKTsKCXByaW50Zigic3VtICA9ICVkXG4iLCBzdW0pOwogICAgcHJpbnRmKCJkaWZmID0gJWRcbiIsIGRpZmYpOwogICAgcHJpbnRmKCJtdWwgID0gJWRcbiIsIG11bCk7CiAgICBwcmludGYoIm1vZCAgPSAlZFxuIiwgbW9kKTsKCXJldHVybiAwOwp9ICAgIAoKdm9pZCBjYWwoaW50IHgsIGludCB5LCBpbnQgKnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpewogICAgKnN1bSA9IHggKyB5OwoKICAgIGlmICh4ID4geSkKICAgICAgICAqZGlmZiA9IHggLSB5OwogICAgZWxzZQogICAgICAgICpkaWZmID0geSAtIHg7CgogICAgKm11bCA9IHggKiB5OwoKICAgICptb2QgPSB4IC8geTsKfQoK