#include<iostream>
using namespace std;
int main()
{
int A, B;
cin >> A >> B;
cout << A + B << endl;
cout << A - B << endl;
cout << (long long)A * B << endl;
cout << A / B << endl;
cout << A % B << endl;
cout << (long long)A * A * A << endl;
cout << (long long)B * B * B << endl;
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKICAgIGludCBBLCBCOwogICAgY2luID4+IEEgPj4gQjsKICAgIGNvdXQgPDwgQSArIEIgPDwgZW5kbDsKICAgIGNvdXQgPDwgQSAtIEIgPDwgZW5kbDsKICAgIGNvdXQgPDwgKGxvbmcgbG9uZylBICogQiA8PCBlbmRsOwogICAgY291dCA8PCBBIC8gQiA8PCBlbmRsOwogICAgY291dCA8PCBBICUgQiA8PCBlbmRsOwogICAgY291dCA8PCAobG9uZyBsb25nKUEgKiBBICogQSA8PCBlbmRsOwogICAgY291dCA8PCAobG9uZyBsb25nKUIgKiBCICogQiA8PCBlbmRsOwogICAgcmV0dXJuIDA7Cn0K