#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 *, int);
int scanf(char *, int *, int *, int *, int *);
double tan(double);
int main() {
  int h, l, t, w;
  double trad, trih;
  while (scanf("%d %d %d %d", &l, &w, &h, &t) == 4) {
    trad = t * 2 * acos(0) / 180;
    trih = l * tan(trad);
    if (trih > h)
      printf("%.3lf mL\n", .5 * h * h * w / tan(trad));
    else
      printf("%.3lf mL\n", l * w * (h - .5 * l * tan(trad)));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb2(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x14(%rbp),%rdx
lea    -0x8(%rbp),%rcx
lea    -0x10(%rbp),%r8
call   1060 <scanf@plt>
cmp    $0x4,%eax
jne    12ad <main+0x16d>
mov    -0x10(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x34(%rbp)
xor    %edi,%edi
call   1040 <acos@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
imul   %ecx,%eax
mov    $0xb4,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1050 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jbe    1229 <main+0xe9>
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xe1d(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1050 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xdf5(%rip),%rdi
call   1030 <printf@plt>
jmp    12a8 <main+0x168>
mov    -0xc(%rbp),%eax
imul   -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xdb0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1050 <tan@plt>
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x48(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xd71(%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    $0x28,%rsp
lea    0xebb(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r8
call   1060 <scanf@plt>
cmp    $0x4,%eax
jne    12cd <main+0x18d>
lea    0xe94(%rip),%r15
lea    0x4(%rsp),%r12
mov    %rsp,%r13
lea    0x14(%rsp),%rbx
lea    0x10(%rsp),%rbp
jmp    1224 <main+0xe4>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x4(%rsp),%eax
mov    (%rsp),%ecx
imul   %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  %xmm0,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  %xmm1,0x18(%rsp)
call   1050 <tan@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0xe1d(%rip),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
addsd  0x18(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
cvttsd2si %xmm0,%esi
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
call   1060 <scanf@plt>
cmp    $0x4,%eax
jne    12cd <main+0x18d>
mov    0x10(%rsp),%r14d
xor    %edi,%edi
call   1040 <acos@plt>
imul   %r14d,%eax
mov    %eax,%ecx
add    %eax,%ecx
movslq %ecx,%rcx
imul   $0xffffffffb60b60b7,%rcx,%rcx
shr    $0x20,%rcx
lea    (%rcx,%rax,2),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x7,%eax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x4(%rsp),%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
call   1050 <tan@plt>
mulsd  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x14(%rsp),%xmm1
ucomisd %xmm1,%xmm0
jbe    11a0 <main+0x60>
movapd %xmm1,%xmm0
mulsd  0xd6f(%rip),%xmm0
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl (%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <tan@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
jmp    11f7 <main+0xb7>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"%d %d %d %d\00"
@.str.1 = [10 x i8] c"%.3lf mL\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %4, i32* %1, i32* %3)
%10 = icmp eq i32 %9, 4
br i1 %10, label %11, label %49
11: ; preds = %0, %43
%12 = load i32, i32* %3
%13 = shl nsw i32 %12, 1
%14 = call i32 @acos(i32 0)
%15 = mul nsw i32 %13, %14
%16 = sdiv i32 %15, 180
%17 = sitofp i32 %16 to double
%18 = load i32, i32* %2
%19 = sitofp i32 %18 to double
%20 = call double @tan(double %17)
%21 = fmul double %20, %19
%22 = load i32, i32* %1
%23 = sitofp i32 %22 to double
%24 = fcmp ogt double %21, %23
br i1 %24, label %25, label %33
25: ; preds = %11
%26 = fmul double %23, 5.000000e-01
%27 = fmul double %26, %23
%28 = load i32, i32* %4
%29 = sitofp i32 %28 to double
%30 = fmul double %27, %29
%31 = call double @tan(double %17)
%32 = fdiv double %30, %31
br label %43
33: ; preds = %11
%34 = load i32, i32* %2
%35 = load i32, i32* %4
%36 = mul nsw i32 %35, %34
%37 = sitofp i32 %36 to double
%38 = sitofp i32 %34 to double
%39 = call double @tan(double %17)
%40 = fmul double %38, -5.000000e-01
%41 = call double @llvm.fmuladd.f64(double %40, double %39, double %23)
%42 = fmul double %41, %37
br label %43
43: ; preds = %33, %25
%44 = phi double [ %42, %33 ], [ %32, %25 ]
%45 = fptosi double %44 to i32
%46 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %4, i32* %1, i32* %3)
%48 = icmp eq i32 %47, 4
br i1 %48, label %11, label %49
49: ; preds = %43, %0
ret i32 0
}