#include using namespace std; int main(){ int x,y; cin >> x >> y; cout << 2*(x+y) << endl << x*y << endl; }