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