#include <iostream>
#include <cmath>
using namespace std;
int main() {
long double a,b;
cin>>a>>b;
cout<<(a+b)/2<<endl;
if (a<0) {
a*=-1;
}
if (b<0) {
b*=-1;
}
cout<<sqrt(a*b)<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWxvbmcgZG91YmxlIGEsYjsKCWNpbj4+YT4+YjsKCWNvdXQ8PChhK2IpLzI8PGVuZGw7CglpZiAoYTwwKSB7ICAgIAoJCWEqPS0xOyAKCX0KCWlmIChiPDApIHsgICAgCgkJYio9LTE7Cgl9Cgljb3V0PDxzcXJ0KGEqYik8PGVuZGw7CglyZXR1cm4gMDsKfQ==