#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 /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, double *, double *, double *);
int main() {
  double w1, w2, r, d, e = 1, total = 0;
  while (scanf("%lf%lf%lf", &w1, &w2, &r)) {
    if (w1 == 0 && w2 == 0 && r == 0) {
      break;
    }
    d = (w2 * (1 + r / 30) + w2 * (1 + r / 60)) / 2;
    if (d > 60) {
      printf("AQUI E BODYBUILDER!!\n");
    } else if (d >= 40) {
      printf("Ta saindo da jaula o monstro!\n");
    } else if (d >= 14) {
      printf("Bora, hora do show! BIIR!\n");
    } else if (d >= 13) {
      printf("E 13\n");
    } else if (d >= 1) {
      printf("Nao vai da nao\n");
    }
    total += (w1 + w2 + r);
    e++;
  }
  if ((total / e) > 40) {
    printf("\n\nAqui nois constroi fibra rapaz! Nao e agua com musculo!\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    0xeed(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     131b <main+0x1fb>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11b3 <main+0x93>
jp     11b3 <main+0x93>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11b3 <main+0x93>
jp     11b3 <main+0x93>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11b3 <main+0x93>
jp     11b3 <main+0x93>
jmp    131b <main+0x1fb>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xe53(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  0xe2f(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm4
movsd  0xe21(%rip),%xmm3
divsd  %xmm3,%xmm4
movsd  0xe0d(%rip),%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe05(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xde7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    123c <main+0x11c>
lea    0xe10(%rip),%rdi
call   1030 <printf@plt>
jmp    12eb <main+0x1cb>
movsd  -0x28(%rbp),%xmm0
movsd  0xdd7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1264 <main+0x144>
lea    0xdfe(%rip),%rdi
call   1030 <printf@plt>
jmp    12e6 <main+0x1c6>
movsd  -0x28(%rbp),%xmm0
movsd  0xdb7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     128c <main+0x16c>
lea    0xdf5(%rip),%rdi
call   1030 <printf@plt>
jmp    12e1 <main+0x1c1>
movsd  -0x28(%rbp),%xmm0
movsd  0xd97(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     12b4 <main+0x194>
lea    0xde8(%rip),%rdi
call   1030 <printf@plt>
jmp    12dc <main+0x1bc>
movsd  -0x28(%rbp),%xmm0
movsd  0xd3f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     12d7 <main+0x1b7>
lea    0xdc6(%rip),%rdi
call   1030 <printf@plt>
jmp    12dc <main+0x1bc>
jmp    12e1 <main+0x1c1>
jmp    12e6 <main+0x1c6>
jmp    12eb <main+0x1cb>
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xcf4(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1144 <main+0x24>
movsd  -0x38(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  0xcf3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1343 <main+0x223>
lea    0xd6a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%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    0xf03(%rip),%rdi
lea    0x20(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1040 <scanf@plt>
test   %rax,%rax
je     12d8 <main+0x1b8>
movsd  0xea6(%rip),%xmm0
xorpd  %xmm3,%xmm3
lea    0xf63(%rip),%r13
lea    0xecc(%rip),%r14
lea    0x20(%rsp),%r15
lea    0x18(%rsp),%r12
lea    0x10(%rsp),%rbx
lea    0xf28(%rip),%rbp
xorpd  %xmm1,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x20(%rsp),%xmm0
ucomisd %xmm3,%xmm0
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
jne    11ce <main+0xae>
jp     11ce <main+0xae>
ucomisd %xmm3,%xmm2
jne    11ce <main+0xae>
jp     11ce <main+0xae>
ucomisd %xmm3,%xmm1
jne    11ce <main+0xae>
jnp    12b7 <main+0x197>
movapd %xmm1,%xmm0
divsd  0xe2e(%rip),%xmm0
movsd  0xe1e(%rip),%xmm3
addsd  %xmm3,%xmm0
movsd  0xe22(%rip),%xmm4
divsd  %xmm4,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  0xe0e(%rip),%xmm0
ucomisd %xmm4,%xmm0
mov    %r13,%rdi
ja     1260 <main+0x140>
ucomisd 0xe05(%rip),%xmm0
mov    %rbp,%rdi
jae    1260 <main+0x140>
ucomisd 0xe00(%rip),%xmm0
lea    0xe61(%rip),%rdi
jae    1260 <main+0x140>
ucomisd 0xdf7(%rip),%xmm0
lea    0xe4b(%rip),%rdi
jae    1260 <main+0x140>
ucomisd 0xdb6(%rip),%xmm0
lea    0xe2b(%rip),%rdi
jb     1265 <main+0x145>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1030 <puts@plt>
movsd  0x20(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  (%rsp),%xmm0
addsd  0xd6c(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1040 <scanf@plt>
test   %rax,%rax
xorpd  %xmm3,%xmm3
jne    11a0 <main+0x80>
movsd  0x8(%rsp),%xmm0
divsd  (%rsp),%xmm0
ucomisd 0xd56(%rip),%xmm0
jbe    12d8 <main+0x1b8>
lea    0xd6f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%lf%lf%lf\00"
@.str.1 = [22 x i8] c"AQUI E BODYBUILDER!!\0A\00"
@.str.2 = [31 x i8] c"Ta saindo da jaula o monstro!\0A\00"
@.str.3 = [27 x i8] c"Bora, hora do show! BIIR!\0A\00"
@.str.4 = [6 x i8] c"E 13\0A\00"
@.str.5 = [16 x i8] c"Nao vai da nao\0A\00"
@.str.6 = [59 x i8] c"\0A\0AAqui nois constroi fibra rapaz! Nao e agua com musculo!\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
store i32 0, i32* %1
store double 1.000000e+00, double* %6
store double 0.000000e+00, double* %7
br label %8
8: ; preds = %61, %0
%9 = call i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %71
11: ; preds = %8
%12 = load double, double* %2
%13 = fcmp oeq double %12, 0.000000e+00
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load double, double* %3
%16 = fcmp oeq double %15, 0.000000e+00
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load double, double* %4
%19 = fcmp oeq double %18, 0.000000e+00
br i1 %19, label %20, label %21
20: ; preds = %17
br label %71
21: ; preds = %17, %14, %11
%22 = load double, double* %3
%23 = load double, double* %4
%24 = fdiv double %23, 3.000000e+01
%25 = fadd double 1.000000e+00, %24
%26 = load double, double* %3
%27 = load double, double* %4
%28 = fdiv double %27, 6.000000e+01
%29 = fadd double 1.000000e+00, %28
%30 = fmul double %26, %29
%31 = call double @llvm.fmuladd.f64(double %22, double %25, double %30)
%32 = fdiv double %31, 2.000000e+00
store double %32, double* %5
%33 = load double, double* %5
%34 = fcmp ogt double %33, 6.000000e+01
br i1 %34, label %35, label %37
35: ; preds = %21
%36 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %61
37: ; preds = %21
%38 = load double, double* %5
%39 = fcmp oge double %38, 4.000000e+01
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
br label %60
42: ; preds = %37
%43 = load double, double* %5
%44 = fcmp oge double %43, 1.400000e+01
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
br label %59
47: ; preds = %42
%48 = load double, double* %5
%49 = fcmp oge double %48, 1.300000e+01
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %58
52: ; preds = %47
%53 = load double, double* %5
%54 = fcmp oge double %53, 1.000000e+00
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %57
57: ; preds = %55, %52
br label %58
58: ; preds = %57, %50
br label %59
59: ; preds = %58, %45
br label %60
60: ; preds = %59, %40
br label %61
61: ; preds = %60, %35
%62 = load double, double* %2
%63 = load double, double* %3
%64 = fadd double %62, %63
%65 = load double, double* %4
%66 = fadd double %64, %65
%67 = load double, double* %7
%68 = fadd double %67, %66
store double %68, double* %7
%69 = load double, double* %6
%70 = fadd double %69, 1.000000e+00
store double %70, double* %6
br label %8
71: ; preds = %20, %8
%72 = load double, double* %7
%73 = load double, double* %6
%74 = fdiv double %72, %73
%75 = fcmp ogt double %74, 4.000000e+01
br i1 %75, label %76, label %78
76: ; preds = %71
%77 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0))
br label %78
78: ; preds = %76, %71
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%lf%lf%lf\00"
@str = [58 x i8] c"\0A\0AAqui nois constroi fibra rapaz! Nao e agua com musculo!\00"
@str.7 = [15 x i8] c"Nao vai da nao\00"
@str.8 = [5 x i8] c"E 13\00"
@str.9 = [26 x i8] c"Bora, hora do show! BIIR!\00"
@str.10 = [30 x i8] c"Ta saindo da jaula o monstro!\00"
@str.11 = [21 x i8] c"AQUI E BODYBUILDER!!\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 i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%8 = icmp eq i64 %7, 0
br i1 %8, label %57, label %9
9: ; preds = %0, %40
%10 = phi double [ %46, %40 ], [ 0.000000e+00, %0 ]
%11 = phi double [ %47, %40 ], [ 1.000000e+00, %0 ]
%12 = load double, double* %1
%13 = fcmp oeq double %12, 0.000000e+00
%14 = load double, double* %2
%15 = fcmp oeq double %14, 0.000000e+00
%16 = select i1 %13, i1 %15, i1 false
%17 = load double, double* %3
%18 = fcmp oeq double %17, 0.000000e+00
%19 = select i1 %16, i1 %18, i1 false
br i1 %19, label %50, label %20
20: ; preds = %9
%21 = fdiv double %17, 3.000000e+01
%22 = fadd double %21, 1.000000e+00
%23 = fdiv double %17, 6.000000e+01
%24 = fadd double %23, 1.000000e+00
%25 = fmul double %14, %24
%26 = call double @llvm.fmuladd.f64(double %14, double %22, double %25)
%27 = fmul double %26, 5.000000e-01
%28 = fcmp ogt double %27, 6.000000e+01
br i1 %28, label %37, label %29
29: ; preds = %20
%30 = fcmp ult double %27, 4.000000e+01
br i1 %30, label %31, label %37
31: ; preds = %29
%32 = fcmp ult double %27, 1.400000e+01
br i1 %32, label %33, label %37
33: ; preds = %31
%34 = fcmp ult double %27, 1.300000e+01
br i1 %34, label %35, label %37
35: ; preds = %33
%36 = fcmp ult double %27, 1.000000e+00
br i1 %36, label %40, label %37
37: ; preds = %35, %33, %31, %29, %20
%38 = phi i8* [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.11, i64 0, i64 0), %20 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.10, i64 0, i64 0), %29 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.9, i64 0, i64 0), %31 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.8, i64 0, i64 0), %33 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.7, i64 0, i64 0), %35 ]
%39 = call i32 @puts(i8* dereferenceable(1) %38)
br label %40
40: ; preds = %37, %35
%41 = load double, double* %1
%42 = load double, double* %2
%43 = fadd double %41, %42
%44 = load double, double* %3
%45 = fadd double %43, %44
%46 = fadd double %10, %45
%47 = fadd double %11, 1.000000e+00
%48 = call i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %9
50: ; preds = %40, %9
%51 = phi double [ %47, %40 ], [ %11, %9 ]
%52 = phi double [ %46, %40 ], [ %10, %9 ]
%53 = fdiv double %52, %51
%54 = fcmp ogt double %53, 4.000000e+01
br i1 %54, label %55, label %57
55: ; preds = %50
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
br label %57
57: ; preds = %0, %55, %50
ret i32 0
}