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