#include <iostream>
using namespace std;
int a,b;
int main()
{
while (cin>>a>>b)
cout<<a+b<<" "<<a*b<<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgogCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IGEsYjsKIAppbnQgbWFpbigpCnsKIHdoaWxlIChjaW4+PmE+PmIpCiBjb3V0PDxhK2I8PCIgIjw8YSpiPDxlbmRsOwp9