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