A,B,C = map(float,input().split())

result = .5*A*C 
pi = 3.14159
result = .5*A*C 
print(f"TRIANGULO: {result:.3f}")

result = pi *C*C
print(f"CIRCULO: {result:.3f}")
result = (A+B)/2 *C
print(f"TRAPEZIO: {result:.3f}")

result = B*B
print(f"QUADRADO: {result:.3f}")
result = A*B
print(f"RETANGULO: {result:.3f}")