#include <bits/stdc++.h> using namespace std; int main() { int m, n; cin >> m >> n; cout<<m*n<<" "<<2*m+2*n; return 0; }