#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;
*mod=x/y;
}
int main() {
int x, y, sum, diff, mul, mod;
cal(x, y, &sum, &diff, &mul, &mod);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhbChpbnQgeCwgaW50IHksIGludCAqc3VtLCBpbnQgKmRpZmYsIGludCAqbXVsLCBpbnQgKm1vZCkgewogICAgKnN1bSA9IHggKyB5OwogICAgIGlmICh4PnkpIHsKICAgICAgKmRpZmY9eC15OwogICAgIH0KICAgIGVsc2UgewogICAgICAqZGlmZj15LXg7CiAgICAgfQogICAgKm11bCA9IHggKiB5OwogICAKICAgICAgKm1vZD14L3k7CiAgICAgCiAgICAKICAgICAgCiAgICAgCn0KCmludCBtYWluKCkgewogICAgaW50IHgsIHksIHN1bSwgZGlmZiwgbXVsLCBtb2Q7CiAgICBzY2FuZigiJWQgJWQiLCAmeCwgJnkpOwogICAgY2FsKHgsIHksICZzdW0sICZkaWZmLCAmbXVsLCAmbW9kKTsKICAgIAogICAgcHJpbnRmKCIlZFxuIiwgc3VtKTsKICAgIHByaW50ZigiJWRcbiIsIGRpZmYpOwogICAgcHJpbnRmKCIlZFxuIiwgbXVsKTsKICAgIHByaW50ZigiJWRcbiIsIG1vZCk7CiAgICAKICAgIHJldHVybiAwOwp9Cgo=