#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, double, double);
int /*<<< orphan*/ scanf(char *, double *, double *, double *, int *, int *);
int main() {
  double a, b, c, d, e, f, g, h, i;
  int x, y;
  scanf("%lf%lf%lf%d%d", &a, &b, &c, &x, &y);
  d = x * a / 100;
  e = x * b / 100;
  f = x * c / 100;
  g = y / a * 100;
  h = y / b * 100;
  i = y / c * 100;
  printf("%.2lf %.2lf %.2lf\n", d, e, f);
  printf("%.2lf %.2lf %.2lf\n", g, h, i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x58(%rbp),%r9
call   1040 <scanf@plt>
cvtsi2sdl -0x54(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe9f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
cvtsi2sdl -0x54(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  0xe84(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0x54(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xe69(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0x58(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  0xe4e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2sdl -0x58(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  0xe33(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x58(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  0xe18(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
lea    0xe0f(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
lea    0xdf4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xedc(%rip),%rdi
lea    0x38(%rsp),%rsi
lea    0x30(%rsp),%rdx
lea    0x28(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x8(%rsp),%r9
call   1040 <scanf@plt>
cvtsi2sdl 0xc(%rsp),%xmm2
cvtsi2sdl 0x8(%rsp),%xmm5
movsd  0x38(%rsp),%xmm0
movapd %xmm5,%xmm6
divsd  %xmm0,%xmm6
mulsd  %xmm2,%xmm0
movsd  0xe90(%rip),%xmm3
divsd  %xmm3,%xmm0
movsd  0x30(%rsp),%xmm1
movapd %xmm5,%xmm7
divsd  %xmm1,%xmm7
mulsd  %xmm2,%xmm1
divsd  %xmm3,%xmm1
movsd  0x28(%rsp),%xmm4
mulsd  %xmm4,%xmm2
divsd  %xmm3,%xmm2
mulsd  %xmm3,%xmm6
movsd  %xmm6,0x20(%rsp)
mulsd  %xmm3,%xmm7
movsd  %xmm7,0x18(%rsp)
divsd  %xmm4,%xmm5
mulsd  %xmm3,%xmm5
movsd  %xmm5,0x10(%rsp)
lea    0xe55(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"%lf%lf%lf%d%d\00"
@.str.1 = [19 x i8] c"%.2lf %.2lf %.2lf\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
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = call i32 @scanf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4, i32* %11, i32* %12)
%14 = load i32, i32* %11
%15 = sitofp i32 %14 to double
%16 = load double, double* %2
%17 = fmul double %15, %16
%18 = fdiv double %17, 1.000000e+02
store double %18, double* %5
%19 = load i32, i32* %11
%20 = sitofp i32 %19 to double
%21 = load double, double* %3
%22 = fmul double %20, %21
%23 = fdiv double %22, 1.000000e+02
store double %23, double* %6
%24 = load i32, i32* %11
%25 = sitofp i32 %24 to double
%26 = load double, double* %4
%27 = fmul double %25, %26
%28 = fdiv double %27, 1.000000e+02
store double %28, double* %7
%29 = load i32, i32* %12
%30 = sitofp i32 %29 to double
%31 = load double, double* %2
%32 = fdiv double %30, %31
%33 = fmul double %32, 1.000000e+02
store double %33, double* %8
%34 = load i32, i32* %12
%35 = sitofp i32 %34 to double
%36 = load double, double* %3
%37 = fdiv double %35, %36
%38 = fmul double %37, 1.000000e+02
store double %38, double* %9
%39 = load i32, i32* %12
%40 = sitofp i32 %39 to double
%41 = load double, double* %4
%42 = fdiv double %40, %41
%43 = fmul double %42, 1.000000e+02
store double %43, double* %10
%44 = load double, double* %5
%45 = load double, double* %6
%46 = load double, double* %7
%47 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %44, double %45, double %46)
%48 = load double, double* %8
%49 = load double, double* %9
%50 = load double, double* %10
%51 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %48, double %49, double %50)
ret i32 0
}

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