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