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