#include<bits/stdc++.h>
using namespace std;
int main(){
int c,k,z,m;
cin>>c>>k;
z=(c+k)*2;
m=c*k;
cout<<z<<endl;
cout<<m;
}
/**************************************************************
Problem: 1416
User: yangjunwen
Language: C++
Result: Accepted
Time:11 ms
Memory:2072 kb
****************************************************************/