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