#include <bits/stdc++.h>
using namespace std;
double a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<"TRIANGULO: "<<fixed<<setprecision(3)<<a*c*0.5<<endl;
cout<<"CIRCULO: "<<3.14159*c*c<<endl;
cout<<"TRAPEZIO: "<<(a+b)*c/2<<endl;
cout<<"QUADRADO: "<<b*b<<endl;
cout<<"RETANGULO: "<<a*b;
return 0;
}