#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int acos(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, double, double, double);
int scanf(char *, double *, double *, double *);
double sqrt(double);
int main() {
  double a, b, c, t_area, in_circle, in_circle_r, y_circle_area, s, r;
  while (scanf("%lf %lf %lf", &a, &b, &c) == 3) {
    s = (a + b + c) / 2;
    t_area = sqrt(s * (s - a) * (s - b) * (s - c));
    in_circle_r = 2 * t_area / (a + b + c);
    in_circle = 2 * acos(0) * in_circle_r * in_circle_r;
    r = a * b * c / sqrt((a + b + c) * (a + b - c) * (a + c - b) * (b + c - a));
    y_circle_area = 2 * acos(0) * r * r - t_area;
    t_area = t_area - in_circle;
    printf("%.4lf %.4lf %.4lf\n", y_circle_area, t_area, in_circle);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1050 <scanf@plt>
cmp    $0x3,%eax
jne    12ed <main+0x1ad>
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  0xe79(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xe2f(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  -0x18(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
xor    %edi,%edi
call   1040 <acos@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
xor    %edi,%edi
call   1040 <acos@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
lea    0xd31(%rip),%rdi
call   1030 <printf@plt>
jmp    114f <main+0xf>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xebb(%rip),%rdi
lea    0x20(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1050 <scanf@plt>
cmp    $0x3,%eax
jne    133f <main+0x1ff>
lea    0xea3(%rip),%r14
lea    0xe90(%rip),%r15
lea    0x20(%rsp),%r12
lea    0x18(%rsp),%r13
lea    0x10(%rsp),%rbx
jmp    1258 <main+0x118>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm2,0x28(%rsp)
movsd  %xmm4,0x40(%rsp)
movsd  %xmm5,0x38(%rsp)
call   1060 <sqrt@plt>
movsd  0x38(%rsp),%xmm5
movsd  0x40(%rsp),%xmm4
movsd  0x28(%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
movsd  0x30(%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm3,%xmm1
xorps  %xmm3,%xmm3
cvtsi2sd %ebp,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
movsd  %xmm3,0x8(%rsp)
mulsd  %xmm5,%xmm2
mulsd  %xmm4,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,0x28(%rsp)
xor    %edi,%edi
call   1040 <acos@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x30(%rsp),%xmm1
subsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
subsd  %xmm2,%xmm1
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1050 <scanf@plt>
cmp    $0x3,%eax
jne    133f <main+0x1ff>
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movapd %xmm1,%xmm0
addsd  %xmm2,%xmm0
movsd  0x10(%rsp),%xmm3
addsd  %xmm3,%xmm0
mulsd  0xd82(%rip),%xmm0
movapd %xmm0,%xmm4
subsd  %xmm1,%xmm4
mulsd  %xmm0,%xmm4
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
ucomisd 0xd62(%rip),%xmm0
jb     12b0 <main+0x170>
sqrtsd %xmm0,%xmm0
jmp    12b5 <main+0x175>
xchg   %ax,%ax
call   1060 <sqrt@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x20(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %edi,%edi
call   1040 <acos@plt>
mov    %eax,%ebp
add    %eax,%ebp
movsd  0x20(%rsp),%xmm2
movsd  0x18(%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
movapd %xmm2,%xmm0
addsd  %xmm5,%xmm0
movapd %xmm0,%xmm1
addsd  %xmm4,%xmm1
subsd  %xmm4,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm2,%xmm1
addsd  %xmm4,%xmm1
subsd  %xmm5,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm5,%xmm0
addsd  %xmm4,%xmm0
subsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm0
ucomisd 0xcd8(%rip),%xmm0
jb     11a0 <main+0x60>
sqrtsd %xmm0,%xmm0
jmp    11c9 <main+0x89>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [19 x i8] c"%.4lf %.4lf %.4lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store i32 0, i32* %1
br label %11
11: ; preds = %14, %0
%12 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4)
%13 = icmp eq i32 %12, 3
br i1 %13, label %14, label %96
14: ; preds = %11
%15 = load double, double* %2
%16 = load double, double* %3
%17 = fadd double %15, %16
%18 = load double, double* %4
%19 = fadd double %17, %18
%20 = fdiv double %19, 2.000000e+00
store double %20, double* %9
%21 = load double, double* %9
%22 = load double, double* %9
%23 = load double, double* %2
%24 = fsub double %22, %23
%25 = fmul double %21, %24
%26 = load double, double* %9
%27 = load double, double* %3
%28 = fsub double %26, %27
%29 = fmul double %25, %28
%30 = load double, double* %9
%31 = load double, double* %4
%32 = fsub double %30, %31
%33 = fmul double %29, %32
%34 = call double @sqrt(double %33)
store double %34, double* %5
%35 = load double, double* %5
%36 = fmul double 2.000000e+00, %35
%37 = load double, double* %2
%38 = load double, double* %3
%39 = fadd double %37, %38
%40 = load double, double* %4
%41 = fadd double %39, %40
%42 = fdiv double %36, %41
store double %42, double* %7
%43 = call i32 @acos(i32 0)
%44 = mul nsw i32 2, %43
%45 = sitofp i32 %44 to double
%46 = load double, double* %7
%47 = fmul double %45, %46
%48 = load double, double* %7
%49 = fmul double %47, %48
store double %49, double* %6
%50 = load double, double* %2
%51 = load double, double* %3
%52 = fmul double %50, %51
%53 = load double, double* %4
%54 = fmul double %52, %53
%55 = load double, double* %2
%56 = load double, double* %3
%57 = fadd double %55, %56
%58 = load double, double* %4
%59 = fadd double %57, %58
%60 = load double, double* %2
%61 = load double, double* %3
%62 = fadd double %60, %61
%63 = load double, double* %4
%64 = fsub double %62, %63
%65 = fmul double %59, %64
%66 = load double, double* %2
%67 = load double, double* %4
%68 = fadd double %66, %67
%69 = load double, double* %3
%70 = fsub double %68, %69
%71 = fmul double %65, %70
%72 = load double, double* %3
%73 = load double, double* %4
%74 = fadd double %72, %73
%75 = load double, double* %2
%76 = fsub double %74, %75
%77 = fmul double %71, %76
%78 = call double @sqrt(double %77)
%79 = fdiv double %54, %78
store double %79, double* %10
%80 = call i32 @acos(i32 0)
%81 = mul nsw i32 2, %80
%82 = sitofp i32 %81 to double
%83 = load double, double* %10
%84 = fmul double %82, %83
%85 = load double, double* %10
%86 = load double, double* %5
%87 = fneg double %86
%88 = call double @llvm.fmuladd.f64(double %84, double %85, double %87)
store double %88, double* %8
%89 = load double, double* %5
%90 = load double, double* %6
%91 = fsub double %89, %90
store double %91, double* %5
%92 = load double, double* %8
%93 = load double, double* %5
%94 = load double, double* %6
%95 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %92, double %93, double %94)
br label %11
96: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [19 x i8] c"%.4lf %.4lf %.4lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %62
9: ; preds = %0, %9
%10 = load double, double* %1
%11 = load double, double* %2
%12 = fadd double %10, %11
%13 = load double, double* %3
%14 = fadd double %12, %13
%15 = fmul double %14, 5.000000e-01
%16 = fsub double %15, %10
%17 = fmul double %15, %16
%18 = fsub double %15, %11
%19 = fmul double %18, %17
%20 = fsub double %15, %13
%21 = fmul double %20, %19
%22 = call double @sqrt(double %21)
%23 = fmul double %22, 2.000000e+00
%24 = load double, double* %1
%25 = load double, double* %2
%26 = fadd double %24, %25
%27 = load double, double* %3
%28 = fadd double %26, %27
%29 = fdiv double %23, %28
%30 = call i32 @acos(i32 0)
%31 = shl nsw i32 %30, 1
%32 = sitofp i32 %31 to double
%33 = fmul double %29, %32
%34 = fmul double %29, %33
%35 = load double, double* %1
%36 = load double, double* %2
%37 = fmul double %35, %36
%38 = load double, double* %3
%39 = fmul double %37, %38
%40 = fadd double %35, %36
%41 = fadd double %40, %38
%42 = fsub double %40, %38
%43 = fmul double %41, %42
%44 = fadd double %35, %38
%45 = fsub double %44, %36
%46 = fmul double %43, %45
%47 = fadd double %36, %38
%48 = fsub double %47, %35
%49 = fmul double %48, %46
%50 = call double @sqrt(double %49)
%51 = fdiv double %39, %50
%52 = call i32 @acos(i32 0)
%53 = shl nsw i32 %52, 1
%54 = sitofp i32 %53 to double
%55 = fmul double %51, %54
%56 = fneg double %22
%57 = call double @llvm.fmuladd.f64(double %55, double %51, double %56)
%58 = fsub double %22, %34
%59 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %57, double %58, double %34)
%60 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%61 = icmp eq i32 %60, 3
br i1 %61, label %9, label %62
62: ; preds = %9, %0
ret i32 0
}