#include <iostream>
#include <cstdio>
#define PI 3.14159
using namespace std;
int main()
{
double a, b, c;
double s1, s2, s3,s4, s5;
cin >> a >> b >> c;
s1 = a * c / 2.0;
s2 = PI * c * c;
s3 = (a + b) * c / 2;
s4 = b * b;
s5 = a * b;
printf("TRIANGULO: %.3lf\n",s1);
printf("CIRCULO: %.3lf\n",s2);
printf("TRAPEZIO: %.3lf\n",s3);
printf("QUADRADO: %.3lf\n",s4);
printf("RETANGULO: %.3lf\n",s5);
return 0;
}