#include <iostream>
#include <cmath>
using namespace std;
int main() {
long double a, b;
cin >> a >> b;
cout << (a+b)/2 << endl;
cout << sqrt(a*b) << endl;
return 0;
}
ICNpbmNsdWRlIDxpb3N0cmVhbT4KICNpbmNsdWRlIDxjbWF0aD4gCiB1c2luZyBuYW1lc3BhY2Ugc3RkOwoKIGludCBtYWluKCkgewoJbG9uZyBkb3VibGUgYSwgYjsKICAgICAgICAgICBjaW4gPj4gYSA+PiBiOwogICAgICAgICAgIGNvdXQgPDwgKGErYikvMiA8PCBlbmRsOwogICAgICAgICAgIGNvdXQgPDwgc3FydChhKmIpIDw8IGVuZGw7CglyZXR1cm4gMDsKfSAgICAg