#include <iostream>
using namespace std;
int main()
{int a,b;
cin>>a>>b;
cout<<a+b<<" "<<a*b;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7aW50IGEsYjsKY2luPj5hPj5iOwogICAgY291dDw8YStiPDwiICI8PGEqYjsKCiAgICByZXR1cm4gMDsKfQo=