#include <stdio.h>
void cal(int x,int y,int *sum,int *diff,int *mul,int *mod){
*sum=x+y;
*diff=x>y?x-y:y-x;
*mul=x*y;
*mod=x/y;
}
int main(){
int x,y,sum,diff,mul,mod;
scanf("%d %d",&x,&y);
cal(x,y,&sum,&diff,&mul,&mod);
printf("和は%d\n",sum);
printf("差は%d\n",diff);
printf("積は%d\n",mul);
printf("商は%d\n",mod);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgY2FsKGludCB4LGludCB5LGludCAqc3VtLGludCAqZGlmZixpbnQgKm11bCxpbnQgKm1vZCl7Cgkqc3VtPXgreTsKCSpkaWZmPXg+eT94LXk6eS14OwoJKm11bD14Knk7CgkqbW9kPXgveTsKfQoKaW50IG1haW4oKXsKCWludCB4LHksc3VtLGRpZmYsbXVsLG1vZDsKCXNjYW5mKCIlZCAlZCIsJngsJnkpOwoJY2FsKHgseSwmc3VtLCZkaWZmLCZtdWwsJm1vZCk7CglwcmludGYoIuWSjOOBryVkXG4iLHN1bSk7CglwcmludGYoIuW3ruOBryVkXG4iLGRpZmYpOwoJcHJpbnRmKCLnqY3jga8lZFxuIixtdWwpOwoJcHJpbnRmKCLllYbjga8lZFxuIixtb2QpOwoJcmV0dXJuIDA7Cn0=