#include<iostream>
using namespace std;
int jia(int a,int b)
{
int temp = a+b;
return temp;
}
int jian(int a,int b)
{
int temp = a-b;
return temp;
}
int cheng(int a,int b)
{
int temp = a*b;
return temp;
}
int chu(int a,int b)
{
if (b==0)
return 0;
else
{
int temp = a/b;
return temp;
}
}
int main()
{
///coding
int a,b,c,d;
cin>>a>>b;
cout<<jia(a,b)<<endl;
cout<<jian(a,b)<<endl;
cout<<cheng(a,b)<<endl;
cout<<chu(a,b);
///do something
///cout
return 0;
}