# include <stdio.h>
# define F1(x, y) x+y
# define F2(x, y) x-y
# define F3(x, y) x*y
# define F4(x, y) x/y
# define F5(x, y) x%y
int main(){
int x, y;
scanf("%d %d", &x, &y);
printf("%d %d %d %d %d", F1(x, y), F2(x, y), F3(x, y), F4(x, y), F5(x, y));
return 0;
}