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