#include<iostream> using namespace std; int main(){ int N,M,a; cin>>N>>M; a=2*(N+M); M*=N; cout<<a<<" "<<M; return 0; }