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