#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
double A = 0, B = 0, C = 0;
scanf("%lf %lf %lf", &A, &B, &C);
// printf("%.1lf%.1lf%.1lf", A, B, C);?
printf("TRIANGULO: %.3lf\n", A * C / 2);
printf("CIRCULO: %.3lf\n", 3.14159 * C * C);
printf("TRAPEZIO: %.3lf\n", (A + B) * C / 2);
printf("QUADRADO: %.3lf\n", B * B);
printf("RETANGULO: %.3lf\n", A * B);
return 0;
}