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