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

/**************************************************************
	Problem: 1416
	User: HCW
	Language: C++
	Result: Accepted
	Time:18 ms
	Memory:2072 kb
****************************************************************/