#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 */
double acos(double);
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int wid, height;
  double r1, h1, r2, h2, v1, v2;
  while (1) {
    scanf("%d %d", &wid, &height);
    if (!wid && !height)
      break;
    r1 = wid / (2.0 * 2.0 * acos(0.0));
    h1 = height - 2 * r1;
    r2 = ((height / (2.0 * (2.0 * acos(0.0) + 1.0))) < (wid / 2.0)
              ? (height / (2.0 * (2.0 * acos(0.0) + 1.0)))
              : (wid / 2.0));
    h2 = wid;
    v1 = (2.0 * acos(0.0) * r1 * r1 * h1);
    v2 = (2.0 * acos(0.0) * r2 * r2 * h2);
    if (v1 > v2)
      printf("%.3lf\n", v1);
    else
      printf("%.3lf\n", v2);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1050 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    116c <main+0x3c>
cmpl   $0x0,-0xc(%rbp)
jne    116c <main+0x3c>
jmp    1307 <main+0x1d7>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
call   1040 <acos@plt>
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
movsd  0xe82(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
call   1040 <acos@plt>
movsd  -0x48(%rbp),%xmm1
movaps %xmm0,%xmm2
addsd  %xmm2,%xmm2
movsd  0xe30(%rip),%xmm0
addsd  %xmm0,%xmm2
movsd  0xe1c(%rip),%xmm0
mulsd  %xmm2,%xmm0
divsd  %xmm0,%xmm1
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xe07(%rip),%xmm2
divsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    124b <main+0x11b>
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
call   1040 <acos@plt>
movaps %xmm0,%xmm2
movsd  -0x60(%rbp),%xmm0
addsd  %xmm2,%xmm2
movsd  0xddb(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  0xdc7(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1261 <main+0x131>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xda8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
call   1040 <acos@plt>
movaps %xmm0,%xmm1
movsd  0xd78(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
call   1040 <acos@plt>
movaps %xmm0,%xmm1
movsd  0xd4d(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    12f1 <main+0x1c1>
movsd  -0x38(%rbp),%xmm0
lea    0xd37(%rip),%rdi
call   1030 <printf@plt>
jmp    1302 <main+0x1d2>
movsd  -0x40(%rbp),%xmm0
lea    0xd21(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xf01(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%ecx
mov    (%rsp),%eax
mov    %ecx,%edx
or     %eax,%edx
je     11fd <main+0xdd>
lea    0xee2(%rip),%r14
lea    0xed5(%rip),%r15
lea    0x4(%rsp),%r12
mov    %rsp,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movapd %xmm0,%xmm1
divsd  0xe7d(%rip),%xmm1
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movapd %xmm1,%xmm3
addsd  %xmm1,%xmm3
movapd %xmm2,%xmm4
subsd  %xmm3,%xmm4
divsd  0xe66(%rip),%xmm2
unpcklpd %xmm0,%xmm4
mulsd  0xe62(%rip),%xmm0
minsd  %xmm0,%xmm2
unpcklpd %xmm2,%xmm1
movapd %xmm1,%xmm0
mulpd  0xe5e(%rip),%xmm0
mulpd  %xmm1,%xmm0
mulpd  %xmm4,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
maxsd  %xmm1,%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%ecx
mov    (%rsp),%eax
mov    %ecx,%edx
or     %eax,%edx
jne    1170 <main+0x50>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [7 x i8] c"%.3lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = icmp ne i32 %6, 0
%8 = load i32, i32* %2
%9 = icmp ne i32 %8, 0
%10 = select i1 %7, i1 true, i1 %9
br i1 %10, label %11, label %40
11: ; preds = %0, %11
%12 = phi i32 [ %37, %11 ], [ %8, %0 ]
%13 = phi i32 [ %35, %11 ], [ %6, %0 ]
%14 = sitofp i32 %13 to double
%15 = fdiv double %14, 0x401921FB54442D18
%16 = sitofp i32 %12 to double
%17 = call double @llvm.fmuladd.f64(double %15, double -2.000000e+00, double %16)
%18 = fdiv double %16, 0x402090FDAA22168C
%19 = fmul double %14, 5.000000e-01
%20 = fcmp olt double %18, %19
%21 = select i1 %20, double %18, double %19
%22 = insertelement <2 x double> poison, double %15, i64 0
%23 = insertelement <2 x double> %22, double %21, i64 1
%24 = fmul <2 x double> %23, <double 0x400921FB54442D18, double 0x400921FB54442D18>
%25 = fmul <2 x double> %23, %24
%26 = insertelement <2 x double> poison, double %17, i64 0
%27 = insertelement <2 x double> %26, double %14, i64 1
%28 = fmul <2 x double> %27, %25
%29 = extractelement <2 x double> %28, i64 0
%30 = extractelement <2 x double> %28, i64 1
%31 = fcmp ogt double %29, %30
%32 = select i1 %31, double %29, double %30
%33 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %32)
%34 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%35 = load i32, i32* %1
%36 = icmp ne i32 %35, 0
%37 = load i32, i32* %2
%38 = icmp ne i32 %37, 0
%39 = select i1 %36, i1 true, i1 %38
br i1 %39, label %11, label %40
40: ; preds = %11, %0
ret i32 0
}