lab4(82)
#include <iostream>
using namespace std;
int main() {
float x, y, z;
cin>>x>>y;
if(x>y) {
z = (x+y)/2;
x = x*y*2;
cout<<x<<" "<<z;
} else {
z = (x+y)/2;
y = x*y*2;
cout<<z<<" "<<y;
}
return 0;
}INFO