#include <iostream>
using namespace std;
int main(){
double a, b, c; cin >> a >> b >> c;
if(a > b + c || b > a + c || c > a + b)
printf("Area = %.1lf\n", (a + b) * c / 2);
else printf("Perimetro = %.1lf\n", a + b + c);
return 0;
}