#include <iostream> using namespace std; int main() { double a, b; cin >> a >> b; printf("%.2lf %.2lf", a * b, (a + b) * 2); return 0; }