#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 *, int);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main(void) {
  double first[2];
  double second[2];
  double third[2];
  int score;
  scanf("%lf %lf", &first[0], &first[1]);
  scanf("%lf %lf", &second[0], &second[1]);
  scanf("%lf %lf", &third[0], &third[1]);
  score = (first[0] * (first[1] / 10)) + (second[0] * (second[1] / 10)) +
          (third[0] * (third[1] / 10));
  printf("%d\n", score);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
lea    0xec6(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x30(%rbp),%rsi
lea    -0x30(%rbp),%rdx
add    $0x8,%rdx
lea    0xeae(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x40(%rbp),%rsi
lea    -0x40(%rbp),%rdx
add    $0x8,%rdx
lea    0xe96(%rip),%rdi
call   1040 <scanf@plt>
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  0xe77(%rip),%xmm0
divsd  %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm3
movsd  0xe61(%rip),%xmm4
divsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  0xe3f(%rip),%xmm3
divsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%esi
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0x28(%rsp),%rdx
lea    0xed7(%rip),%rbx
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rdx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movsd  0x28(%rsp),%xmm0
movsd  0xe92(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0x18(%rsp),%xmm2
divsd  %xmm1,%xmm2
movsd  0x8(%rsp),%xmm3
divsd  %xmm1,%xmm3
mulsd  0x10(%rsp),%xmm2
mulsd  0x20(%rsp),%xmm0
mulsd  (%rsp),%xmm3
addsd  %xmm2,%xmm0
addsd  %xmm0,%xmm3
cvttsd2si %xmm3,%esi
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x double]
%3 = alloca [2 x double]
%4 = alloca [2 x double]
%5 = alloca i32
store i32 0, i32* %1
%6 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 0
%7 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %6, double* %7)
%9 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%10 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%11 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %9, double* %10)
%12 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%13 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%14 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %12, double* %13)
%15 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 0
%16 = load double, double* %15
%17 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 1
%18 = load double, double* %17
%19 = fdiv double %18, 1.000000e+01
%20 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%21 = load double, double* %20
%22 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%23 = load double, double* %22
%24 = fdiv double %23, 1.000000e+01
%25 = fmul double %21, %24
%26 = call double @llvm.fmuladd.f64(double %16, double %19, double %25)
%27 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%28 = load double, double* %27
%29 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%30 = load double, double* %29
%31 = fdiv double %30, 1.000000e+01
%32 = call double @llvm.fmuladd.f64(double %28, double %31, double %26)
%33 = fptosi double %32 to i32
store i32 %33, i32* %5
%34 = load i32, i32* %5
%35 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %34)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [2 x double]
%2 = alloca [2 x double]
%3 = alloca [2 x double]
%4 = bitcast [2 x double]* %1 to i8*
%5 = bitcast [2 x double]* %2 to i8*
%6 = bitcast [2 x double]* %3 to i8*
%7 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%8 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 1
%9 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %7, double* %8)
%10 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 0
%11 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 1
%12 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %10, double* %11)
%13 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%14 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%15 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %13, double* %14)
%16 = load double, double* %7
%17 = load double, double* %8
%18 = fdiv double %17, 1.000000e+01
%19 = load double, double* %10
%20 = load double, double* %11
%21 = fdiv double %20, 1.000000e+01
%22 = fmul double %19, %21
%23 = call double @llvm.fmuladd.f64(double %16, double %18, double %22)
%24 = load double, double* %13
%25 = load double, double* %14
%26 = fdiv double %25, 1.000000e+01
%27 = call double @llvm.fmuladd.f64(double %24, double %26, double %23)
%28 = fptosi double %27 to i32
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %28)
ret i32 0
}