#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 *, double);
int /*<<< orphan*/ scanf(char *, double *);
int main(int argc, char const *argv[]) {
  double v[10], s[3];
  int i, j = 0;
  for (i = 1; i < 10; ++i) {
    scanf("%lf", &v[i]);
    if ((i % 3) == 0) {
      s[j] = 3.6 * (v[i - 2] + (v[i - 1] * v[i]));
      j++;
    }
  }
  s[0] < s[1] && s[0] < s[2]   ? printf("%.1lf", s[0])
  : s[1] < s[0] && s[1] < s[2] ? printf("%.1lf", s[1])
                               : printf("%.1lf", s[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x88(%rbp)
movl   $0x1,-0x84(%rbp)
cmpl   $0xa,-0x84(%rbp)
jge    1207 <main+0xe7>
movslq -0x84(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe95(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x84(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ee <main+0xce>
mov    -0x84(%rbp),%eax
sub    $0x2,%eax
cltq
movsd  -0x60(%rbp,%rax,8),%xmm0
mov    -0x84(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x60(%rbp,%rax,8),%xmm1
movslq -0x84(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe32(%rip),%xmm0
mulsd  %xmm1,%xmm0
movslq -0x88(%rbp),%rax
movsd  %xmm0,-0x80(%rbp,%rax,8)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    11f3 <main+0xd3>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    114d <main+0x2d>
movsd  -0x80(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1245 <main+0x125>
movsd  -0x80(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1245 <main+0x125>
movsd  -0x80(%rbp),%xmm0
lea    0xdd1(%rip),%rdi
call   1030 <printf@plt>
jmp    12a6 <main+0x186>
movsd  -0x78(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1289 <main+0x169>
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1289 <main+0x169>
movsd  -0x78(%rbp),%xmm0
lea    0xd93(%rip),%rdi
call   1030 <printf@plt>
mov    %eax,-0x8c(%rbp)
jmp    12a0 <main+0x180>
movsd  -0x70(%rbp),%xmm0
lea    0xd77(%rip),%rdi
call   1030 <printf@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
xor    %r15d,%r15d
mov    $0xff,%r12b
mov    $0x1,%r13b
mov    $0x8,%ebp
lea    0xec5(%rip),%r14
jmp    1162 <main+0x42>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0xff,%r12b
add    $0x1,%r13b
add    $0x8,%rbp
cmp    $0x50,%rbp
je     11b0 <main+0x90>
movzbl %r13b,%eax
imul   $0xab,%eax,%eax
shr    $0x9,%eax
lea    (%rax,%rax,2),%ebx
lea    (%rsp,%rbp,1),%rsi
add    $0x20,%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
add    %r12b,%bl
jne    1150 <main+0x30>
movsd  0x18(%rsp,%rbp,1),%xmm0
mulsd  0x20(%rsp,%rbp,1),%xmm0
addsd  0x10(%rsp,%rbp,1),%xmm0
mulsd  0xe5f(%rip),%xmm0
movslq %r15d,%r15
movsd  %xmm0,(%rsp,%r15,8)
add    $0x1,%r15d
jmp    1150 <main+0x30>
movsd  (%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movapd %xmm2,%xmm0
minsd  %xmm3,%xmm0
movapd %xmm1,%xmm4
cmpltsd %xmm2,%xmm4
cmpltsd %xmm1,%xmm2
andpd  %xmm2,%xmm0
andnpd %xmm3,%xmm2
orpd   %xmm0,%xmm2
movapd %xmm1,%xmm0
cmpltsd %xmm3,%xmm0
movapd %xmm0,%xmm3
andnpd %xmm2,%xmm3
andpd  %xmm1,%xmm0
orpd   %xmm3,%xmm0
andpd  %xmm4,%xmm0
andnpd %xmm2,%xmm4
orpd   %xmm4,%xmm0
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [6 x i8] c"%.1lf\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x double]
%4 = alloca [3 x double]
%5 = bitcast [10 x double]* %3 to i8*
%6 = bitcast [3 x double]* %4 to i8*
br label %7
7: ; preds = %2, %28
%8 = phi i64 [ 1, %2 ], [ %30, %28 ]
%9 = phi i32 [ 0, %2 ], [ %29, %28 ]
%10 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %8
%11 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %10)
%12 = trunc i64 %8 to i8
%13 = urem i8 %12, 3
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %7
%16 = add nsw i64 %8, -2
%17 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %16
%18 = load double, double* %17
%19 = add nsw i64 %8, -1
%20 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %19
%21 = load double, double* %20
%22 = load double, double* %10
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double %18)
%24 = fmul double %23, 3.600000e+00
%25 = sext i32 %9 to i64
%26 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 %25
store double %24, double* %26
%27 = add nsw i32 %9, 1
br label %28
28: ; preds = %7, %15
%29 = phi i32 [ %27, %15 ], [ %9, %7 ]
%30 = add nuw nsw i64 %8, 1
%31 = icmp eq i64 %30, 10
br i1 %31, label %32, label %7
32: ; preds = %28
%33 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 0
%34 = load double, double* %33
%35 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 1
%36 = load double, double* %35
%37 = fcmp olt double %34, %36
%38 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 2
%39 = load double, double* %38
%40 = fcmp olt double %34, %39
%41 = select i1 %37, i1 %40, i1 false
%42 = fcmp olt double %36, %34
%43 = fcmp olt double %36, %39
%44 = select i1 %42, i1 %43, i1 false
%45 = select i1 %44, double %36, double %39
%46 = select i1 %41, double %34, double %45
%47 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %46)
ret i32 0
}