#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 pow(double, double);
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  while (1) {
    int D, V;
    scanf("%d %d", &D, &V);
    if (!D && !V)
      break;
    printf("%.8f\n", pow((pow(D, 3) * 3.1415926535897932384626434 / 6 - V) /
                             (3.1415926535897932384626434 / 6),
                         1.0 / 3));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    116c <main+0x3c>
cmpl   $0x0,-0xc(%rbp)
jne    116c <main+0x3c>
jmp    11c9 <main+0x99>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xea7(%rip),%xmm1
call   1050 <pow@plt>
movsd  0xe92(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe7e(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe61(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe4d(%rip),%xmm1
call   1050 <pow@plt>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee9(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ecx
or     %eax,%ecx
je     11d6 <main+0xa6>
lea    0xed0(%rip),%r14
lea    0xec3(%rip),%r15
lea    0x4(%rsp),%r12
mov    %rsp,%rbx
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xe81(%rip),%xmm1
call   1050 <pow@plt>
mulsd  0xe7c(%rip),%xmm0
divsd  0xe7c(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl (%rsp),%xmm1
subsd  %xmm1,%xmm0
divsd  0xe70(%rip),%xmm0
movsd  0xe70(%rip),%xmm1
call   1050 <pow@plt>
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ecx
or     %eax,%ecx
jne    1170 <main+0x40>
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 = [6 x i8] c"%.8f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %0, %12
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = icmp ne i32 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %4
%9 = load i32, i32* %3
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %8
br label %24
12: ; preds = %8, %4
%13 = load i32, i32* %2
%14 = sitofp i32 %13 to double
%15 = call double @pow(double %14, double 3.000000e+00)
%16 = fmul double %15, 0x400921FB54442D18
%17 = fdiv double %16, 6.000000e+00
%18 = load i32, i32* %3
%19 = sitofp i32 %18 to double
%20 = fsub double %17, %19
%21 = fdiv double %20, 0x3FE0C152382D7365
%22 = call double @pow(double %21, double 0x3FD5555555555555)
%23 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %22)
br label %4
24: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [6 x i8] c"%.8f\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 %29
11: ; preds = %0, %11
%12 = phi i32 [ %24, %11 ], [ %6, %0 ]
%13 = sitofp i32 %12 to double
%14 = call double @pow(double %13, double 3.000000e+00)
%15 = fmul double %14, 0x400921FB54442D18
%16 = fdiv double %15, 6.000000e+00
%17 = load i32, i32* %2
%18 = sitofp i32 %17 to double
%19 = fsub double %16, %18
%20 = fdiv double %19, 0x3FE0C152382D7365
%21 = call double @pow(double %20, double 0x3FD5555555555555)
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %21)
%23 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%24 = load i32, i32* %1
%25 = icmp ne i32 %24, 0
%26 = load i32, i32* %2
%27 = icmp ne i32 %26, 0
%28 = select i1 %25, i1 true, i1 %27
br i1 %28, label %11, label %29
29: ; preds = %11, %0
ret i32 0
}