# include <iostream>using namespace std;int main ( ){
long long int a,b,c,d,e,f;while (cin>>a>>b){ c=a+b; d=a-b; e=a*b; f=a/b; cout<<c<<endl<<d<<endl<<e<<endl<<f<<endl;}
return 0; }