#include<iostream> using namespace std; int main(){ int n; cin>>n; int m; cin>>m; cout<<((n+m)*2)<<endl; cout<<(n*m)<<endl; return 0; }