#include<iostream> using namespace std; int main(){ double ch,d; cin>>ch>>d; cout<<(ch+d)*2<<endl; cout<<ch*d; return 0; }