#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double a, b, c;
cin >> a >> b >> c;
if (a + b >= c && b + c >= a && a + c >= b)
{
double p = (a + b + c) / 2;
double S = sqrt(p * (p - a) * (p - b) * (p - c));
double r = S / p;
double R = a* b * c / (4 * S);
cout<<"Радиус вписанной окружности равен "<<r<<endl;
cout<<"Радиус описанной окружности равен "<<R<<endl;
}
else
cout<<"Треугольник с заданными сторонами не существует!"<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIAp7Cglkb3VibGUgYSwgYiwgYzsKCWNpbiA+PiBhID4+IGIgPj4gYzsKCWlmIChhICsgYiA+PSBjICYmIGIgKyBjID49IGEgJiYgYSArIGMgPj0gYikKCXsKCQlkb3VibGUgcCA9IChhICsgYiArIGMpIC8gMjsKCQlkb3VibGUgUyA9IHNxcnQocCAqIChwIC0gYSkgKiAocCAtIGIpICogKHAgLSBjKSk7CgkJZG91YmxlIHIgPSBTIC8gcDsKCQlkb3VibGUgUiA9IGEqIGIgKiBjIC8gKDQgKiBTKTsKCQljb3V0PDwi0KDQsNC00LjRg9GBINCy0L/QuNGB0LDQvdC90L7QuSDQvtC60YDRg9C20L3QvtGB0YLQuCDRgNCw0LLQtdC9ICI8PHI8PGVuZGw7CgkJY291dDw8ItCg0LDQtNC40YPRgSDQvtC/0LjRgdCw0L3QvdC+0Lkg0L7QutGA0YPQttC90L7RgdGC0Lgg0YDQsNCy0LXQvSAiPDxSPDxlbmRsOwoJfQoJZWxzZQoJCWNvdXQ8PCLQotGA0LXRg9Cz0L7Qu9GM0L3QuNC6INGBINC30LDQtNCw0L3QvdGL0LzQuCDRgdGC0L7RgNC+0L3QsNC80Lgg0L3QtSDRgdGD0YnQtdGB0YLQstGD0LXRgiEiPDxlbmRsOwoJcmV0dXJuIDA7Cn0=