/*
#include <stdio.h>
#include <stdlib.h>
int main()
{#include <stdlib.h>
long long a;
long long b;
scanf("%lld %lld",&a,&b);
printf("%lld",a+b);
}
*/
/*
#include <stdio.h>
int main()
{
long long int a,b;
long long int c;
scanf("%lld %lld",&a,&b);
c = a+b;
printf("%lld",c);
}
*/
/*
#include <stdio.h>
int main()
{
long long int a;
scanf("%lld",&a);
printf("%lld",-a);
}
*/
/*
#include <stdio.h>
int main()
{
char a;
scanf("%c",&a);
a = a+1;
printf("%c",a);
}
*/
/*
#include <stdio.h>
int main()
{
int a,b,sum;
scanf("%d %d",&a,&b);
sum = a/b;
printf("%d",sum);
}
*/
/*
#include <stdio.h>
int main()
{
int a,b,sum;
scanf("%d %d",&a,&b);
sum = a%b;
printf("%d",sum);
}
*/
/*
#include <stdio.h>
int main()
{
long long int a;
scanf("%lld",&a);
printf("%lld",++a);
}
*/
#include<stdio.h>
int main()
{
int a,b,sum;
sscanf("%d %d",a,b);
printf("%d\n",a+b);
printf("%d\n",a-b);
printf("%d\n",a*b);
printf("%d\n",a/b);
printf("%d\n",a%b);
}