#include<bits/stdc++.h>
using namespace std;
int main()
{
   int a,b,s,d;
   cin>>a>>b;
   d=(a+b)*2;
   s=a*b;
   cout<<d<<endl;
   cout<<s<<endl;
   return 0;
}