#include <iostream> #include <cstdio> using namespace std; int main(){ int N; int M; cin>>N; cin>>M; cout<<(N+M)*2<<" "; cout<<N*M; }