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