#include <bits/stdc++.h>
using namespace std;
int main(){
	int a=0,b=0; 
	cin>> a >> b ;
	cout<<2*(a+b)<<endl;
	cout<<a*b;
	
	return 0;	
}
/**************************************************************
	Problem: 1416
	User: chenjiahui
	Language: C++
	Result: Accepted
	Time:18 ms
	Memory:2072 kb
****************************************************************/